I have this loop that ask a user, and I want to print "Enter a number (1):". Then the number in the parenthesis will increment each successful loop.
getinput = True
list1 = []
while getinput:
for i in range(25):
numbers = int(input("Enter a number: "))
list1.append(numbers)
getinput = False
for i in range(25):
numbers = int(input("Enter a number: "))
list1.append(numbers)
print("Unsorted numbers: ", list1)
str.format(), or even string concatenation? Cause we can't really teach you them here, that's outside the scope of this site. SO is not meant to teach you the language basics. Check out How to ask and answer homework questions. For reference: What topics can I ask about here? See also How to Ask.i