Variables and Data Types
What's Variable
Variable Types
# define variable
name = "Ayman"
print(name)
Output: Ayman# new line
name = "Ayman\nAyman"
print(name)
Output: Ayman
AymanNumbers
Operation on Variables
String Operations
Numbers Operations
String Formatting
Option #1: %-formatting
Option #2: str.format()
Memory Location
Casting
Get the Type
Single and Double Quotes
Case-Sensitive
Last updated