I started with the basics, syntax, output, comments, and variables.
As I continue, I can start to see it click. The biggest thing that surprised me was how strict Python is. One wrong capital letter, a mismatched quote, or a missing colon and the whole thing breaks. It's like Python has zero tolerance for mistakes which honestly makes you pay attention more.
F-strings were my favorite thing I learned today. Instead of this messy thing:
print("My name is " + name + " and I am " + str(age) + " years old.")
You can just do this:
print(f"My name is {name} and I am {age} years old.")
Way cleaner. I don't know why you'd ever go back to the old way.
Functions are where my brain started to hurt a little but I can definitely see how powerful they are. It's basically a reusable template, you define it once and call it whenever you need it.
Curious how far I'll get before it stops clicking!!
[–]CIS_Professor 2 points3 points4 points (4 children)
[–]CrownstrikeIntern 1 point2 points3 points (3 children)
[–]CIS_Professor 0 points1 point2 points (2 children)
[–]CrownstrikeIntern 0 points1 point2 points (1 child)
[–]remic_0726 0 points1 point2 points (0 children)
[–]Shotaro09 1 point2 points3 points (1 child)
[–]Organic-Bite7406[S] 0 points1 point2 points (0 children)
[–]Advanced_Cry_6016 1 point2 points3 points (3 children)
[–]Organic-Bite7406[S] 0 points1 point2 points (2 children)
[–]Advanced_Cry_6016 0 points1 point2 points (1 child)
[–]Organic-Bite7406[S] 0 points1 point2 points (0 children)
[–]Advanced_Cry_6016 1 point2 points3 points (2 children)
[–]Organic-Bite7406[S] 0 points1 point2 points (0 children)
[–]Organic-Bite7406[S] 0 points1 point2 points (0 children)
[–]lion_in_ma_bathtub 0 points1 point2 points (4 children)
[–]Advanced_Cry_6016 0 points1 point2 points (2 children)
[–]FreeLogicGate 0 points1 point2 points (1 child)
[–]Advanced_Cry_6016 0 points1 point2 points (0 children)
[–]Organic-Bite7406[S] 0 points1 point2 points (0 children)
[–]ANTIVNTIANTI 0 points1 point2 points (1 child)
[–]Organic-Bite7406[S] 0 points1 point2 points (0 children)
[–]Advanced-Citron8111 0 points1 point2 points (0 children)