- BASICS
- Statements
-
Operators
- Functions
- Incremental
- Errors
- FUNCTIONS
- Recursion
- Objects
- Lambda
- STRINGS
- Immutable
- Raw Strings
- Validation
- Config
- Security
- CLASS
- Definition
- Attributes
- Functional
- Methods
- COLLECTIONS
- Lists
- Dictionaries
- Efficiency
- Tree
- Iterator
- Tuples
- References
- STORAGE
- Files
- Databases
- Pipes
- With Open
- Shelve
- Zip
- Csv
- Json
Operators
""" The + operator concatenates two strings
The * operator performs repetitions on strings
"""
a = 'Hello'
b = 'World'
print(a + ' ' + b)
print(a * 3)
"""
Hello World
HelloHelloHello
"""
Floor Division
minutes = 105
hours = minutes // 60
remainder = minutes - hours*60
print(remainder) # 45
Last update: 210 days ago