r/CodingForBeginners • • Oct 21 '26

Baby Steps, second day learning Python

Post image

Day two learning Python. Combining Print commands with Variables.

106 Upvotes

21 comments sorted by

View all comments

5

u/kutac56 Oct 21 '26

Small nitpick but I recommend doing x = y instead of x=y as it looks better

4

u/fyknite Oct 21 '26

Space between assign sign. 👌🏻

2

u/DiscountFit9224 Oct 21 '26

install black package and black formatter extension then turn on format on save in settings

2

u/fyknite Oct 21 '26
robot_name = "CyberPunk"
robot_health = 100
robot_coins = 25
robot_coins += 15
robot_health -= 20
robot_coins += 30
print(robot_name)
print(robot_health)
print(robot_coins)

2

u/AffectionatePlane598 Oct 23 '26

The best part of programming is learning stuff for the first time and finishing your first big project keep pushing

1

u/Practical-Bug-6786 6d ago

I agree, it looks better with the spaces.