Python 3 Basics Flashcards
In Python, how are code blocks created?
Using indentation rather than curly braces.
Comment on Python’s programming paradigm and on how variables are declared with it.
Python is completely object oriented, and not “statically typed”. You do not need to declare variables before using them, or declare their type. Every variable in Python is an object.
What types of number are supported in Python?
Integers (whole numbers), Floats (decimals) and Complex Numbers
What is the difference between using single and double quotes for strings?
The difference between the two is that using double quotes makes it easy to include apostrophes (whereas these would terminate the string if using single quotes)
Can multiple assignments be made at the same time in python?
Yes.
In python, can you add numbers to strings?
No.