DEV Community

Harsh
Harsh

Posted on

Day 2 of Learning Python!

Here's what I learned today:

  • Variables and f-strings for clean formatting
  • Basic math functions like pow(), round(), floor(), and ceil()
  • 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! ^^
Image description

If

If you're also learning, feel free to connect! ^^

Top comments (4)

Collapse
 
csm18 profile image
csm •

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!

Collapse
 
csm18 profile image
csm •

by the way, I wish I could also be friend of tony stark like you 😄!

Collapse
 
harshvdev profile image
Harsh •

XD
Yeah, he's my one of my friends 😎

Collapse
 
harshvdev profile image
Harsh •

I'll try!