for hole in range(1,19):
score = int(input(f"your score in hole {hole}\n"))
print(score)
Try
for hole in range(1,19):
score = int(input(f"your score in hole {hole}\n"))
print(score)
Yes, and by the way I don’t see a difference between OP and @BlueFlameIsHere
Is just not showing in console I tried in Pyto works fine
@ROLANDOROMAN1 welcome to the community!
Please use snippets when writing code in posts
You have not indented your code and that’s why it’s not working
Try this:
for hole in range(1,19):
score = int(input(f"your score in hole {hole}\n"))
print(score)
That is literally what @BlueFlameIsHere wrote. Even if the code was not indented, there would be a print( ) statement.
I think haven’t explain i get the question prompt i but I don’t see the print after adding it
(post deleted by author)
not sure what you mean. What are you trying to achieve exactly?
2 Likes