Python works on different platforms as:
Windows, Mac, Linux, Raspberry Pi, etc
What is syntax?
the order of the code
Variables are created when you:
assign a value to it
Comments can be use to:
Comments can be used to explain Python code, make the code more readable and to prevent execution when testing code.
Variables can store data of
Different types
What can Python do?
Python can be used on a server to create web applications, create workflows, it can connect to database systems. It can also read and modify files. Python can be used to handle big data and perform complex mathematics and can be used for rapid prototyping, or for production-ready software development.
You have to use the same number of spaces in the same block of code, if not:
Python will give you an error
command for declaring a variable
There is not a command
How can you create a comment
with an # before the words
Different types can do
Different things
What is python used for?
web development
software development
mathematics
system scripting
Python uses indentation to indicate a:
Block of code
How do you get the type?
with type()
Comments starts with a # because...
python ignores them
the data type is set when you...
assign a value to a variable
The most recent major version of Python is:
Python 3
Python syntax can be executed by writing directly in:
the Command Line
Do not need to be declared with any particular type, and can even change type after they have been set:
Variable
To add a multiline comment you could...
insert a # for each line
You can get data type by typing...
type()
what type of file does python use?
.py
What is an indentation?
Indentation refers to the spaces at the beginning of a code line.
If you want to specify the data type of a variable you use...
Casting
A comment does not have to be text that explains the code, it can also be used to prevent Python to...
executing code
Name 3 data types
str, int, float, list, tuple, dic, set, bool, bytes, bytearray, memoryview, NoneType, etc