@SirajBoss You will have to follow the output specification accurately. You must not print anything extra.
Remove the first printf (printf("Enter a number:");) and remove the extra text from the second printf (printf("Your number is: %d",a); → printf("%d",a);).
What’s wrong with the submit; It always shows me wrong. Is it necessary to match all the lines and letters with your solutions? There are several methods of fixing that problem. I can’t still find where is the problem. Here’s my code block
while True:
try:
user_input = input("Number: ")
converted_input = int(user_input)
output = 0 # dummy value
if converted_input < 200000000:
output = converted_input
print(output)
break
else:
print("Input can't be bigger than 200000000")
continue
except ValueError:
print("Invalid input. Please try again.")
C11 GCC9.2
And bro ur code will not be accepted since u are using extra things like “enter your number”.
remove them.your output should come as given in the question.