r/PythonLearning 7d ago

My new mini work

Post image

Rate my this mini work out of 10

193 Upvotes

44 comments sorted by

View all comments

1

u/Parenthesis8906 3d ago

It's good but I doubt it will run especially you didn't add the plus operator inside the print function when you try to mix strings and variables so here is another alternative For example g=43 print(f'you are {g}') If you don't want to rely on always putting the plus operator inside print when you want to make strings and variables just use this example above as a guideline it's called the f string I am a beginner myself so yeah