Computer Science, asked by Saahokumar, 9 months ago

The following code has error. Rewrite the correct code underlying all the correction. Age =input ("enter your age") Print ("last year-your age was ") Age-1

Answers

Answered by Sidra1103
4

Answer:

Age=int(input(''Enter your Age"))

print(''last year your age was",Age-1)

Explanation:

age variable was not specified as an integer.

subtracting one from age should be written within the brackets so that it can be compiled after the sentence, typing it out of the bracket will give a syntax error.

Similar questions