I'm curious about the Python result.

Asked 2 years ago, Updated 2 years ago, 15 views

How can it be changed like this when solving a problem? I stopped understanding and thinking Let me ask you a question Definitely
x=3
There are three lines in the blank From the next line, # decreased one by one from the three.

Like this Then it makes sense to subtract sum-=x one by one, but how can you change a number or variable to #? It didn't work even with print<

python

2022-09-22 08:16

1 Answers

This is what happens in Python.

sum = 37
print(sum * '#') # Imagine what will come out and then run it.

What else could it be? Why don't you study Python basics thoroughly from the beginning?


2022-09-22 08:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.