Next dayI. Basic data Types1. Digital
- Int (integer)
- Long (length integer)
- Float (float type)
- Complex (plural)
2. Boolean value
- 1 (true) or 0 (false) indication
3. String
- String formatting
- Move out of space
- Segmentation
- Length
- Index
- Slice
4. List
- Create a list
- List operations
5, meta-group
6. Dictionaries
- Create dictionary (unordered)
- Dictionary operations
second, the Operation1. Arithmetic Operations
2. Comparison Operation
3. Assignment Operation
4. Logical Operation
5. Member Arithmetic
6. Identity Operation
7, bit arithmetic
8, Operation priority
Third, Circulation1. For Loop
For I in range: print ("Loop:", i)
2. While Loop
Age = 33print ("-------guess the game-------\ n-------cannot exceed 5 times-------") Count = 0while Count < 5: guest = int (Input ("Enter your guess:")) C3/>if guest = = Age: print ("guessed right!") Break Elif Guest < age: print ("Guess small!") else: print ("Guess big!") Count + = 1else: print ("Too hard to guess!")
Python Learning Path 2