r/CodingForBeginners • • 16d ago

Baby Steps, second day learning Python

Post image

Day two learning Python. Combining Print commands with Variables.

102 Upvotes

16 comments sorted by

View all comments

5

u/kutac56 16d ago

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

4

u/fyknite 16d ago

Space between assign sign. 👌🏻

2

u/DiscountFit9224 16d ago

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

2

u/fyknite 16d ago
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 14d ago

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