Home > other >  Help rewriting code, thank you
Help rewriting code, thank you

Time:12-18

I want to know where my code wrong, the system has been prompt

CodePudding user response:

Code yes but you receive input there generally don't use eval if input is directly with integer int (input ())

CodePudding user response:

It is best to post code, print (rn) (n)),
Rn function, print (n;" Is a leap year)"

CodePudding user response:

 def rn (n) : 
If n % 4==0:
Print (n, 'is')
The else:
Print (' not ')

N=int (input (' input year '))
Rn (n)
  • Related