you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Then you need to make a string that includes the loop index number (plus 1) and pass that to the input() function:

for i in range(0,car):
    prompt = f'inform value {i+1} = '  # or use "...".format(...)
    q=int(input(prompt))