def main(): age = getAge weight = getWeight birthMonth = getMonth getAge(age) getWeight(weight) getMonth(birthMonth) correctAnswers(age,weight,birthMonth) End Module def getAge(age): age = input('Enter your age.') if age <= 25 Then Display "Congratulations, the age is 25 or less." else Display "Your old" End if End Module def getWeight(weight) weight = input ('Enter your weight') if weight >= 128 Then Display "Congratulations, the weight is 128 or more." else Display "You are too thin." End if End Module def getMonth(birthMonth): birthMonth = input ('Enter the month') if birthMonth = April Then Display 'Congratulations, the month is April.' else Display 'Wrong month.' End if End Module def correctAnswers(age,weight,birthMonth): print 'The correct age is 25' print 'The correct weight is 128' print 'The correct month is April' End Module main()
I have written this code as homework. I wrote it the same way I have been writing my other codes. But this one seems to have a lot of syntax errors. But I do see why it should have any. My other codes ran fine. Please can somebody give me some help. Thanks!!!