Here's what I learned today:
- Variables and f-strings for clean formatting
- Basic math functions like
pow()
,round()
,floor()
, andceil()
- String methods like
.upper()
,.lower()
,.title()
,.replace()
,.index()
- Lists and how to modify, copy, and insert elements
- Tuples and how they are different from lists
- Custom functions with parameters and user input
- Also made a very basic calculator!
Next I'll learn about
if
,elif
,else
statements and loops!
Question:
How do I remember all this for long term? There are too many string functions like .upper(), .lower(), .title(), .removesuffix(), .removeprefix(), .rstrip(), .lstrip(), .strip(), etc.
If you're also learning, feel free to connect! ^^
If
If you're also learning, feel free to connect! ^^
Top comments (4)
by writing simple programs that use these string manipulating functions(methods) everyday, we get used to them. no need to remember them!
for example:
you can write a word guessing game, where we deal with user input string!
by the way, I wish I could also be friend of tony stark like you 😄!
XD
Yeah, he's my one of my friends 😎
I'll try!