Print function, Strings and Math basic calculations:
Print function:
print() function in Python is a function that outputs to your console window whatever you say you want to print out.
Strings:
Strings are just "strings" of text.
Note:
The quotes may be single or double else you can escape them using backslash(\).
Example:
Concatenation:
use the "," -> it will print them out separately with a space.
use the "+" -> join integers and floats together, then you will perform an arithmetic operation.
Example:
Math basic calculations:
In python, math calculations are pretty simple enough and cool.
Example:
Print function:
print() function in Python is a function that outputs to your console window whatever you say you want to print out.
Strings:
Strings are just "strings" of text.
Note:
The quotes may be single or double else you can escape them using backslash(\).
Example:
Concatenation:
use the "," -> it will print them out separately with a space.
use the "+" -> join integers and floats together, then you will perform an arithmetic operation.
Example:
Math basic calculations:
In python, math calculations are pretty simple enough and cool.
Example:



Comments
Post a Comment