diff --git a/conditional_if_elif.py b/conditional_if_elif.py index 8ae7e05..8ddeca2 100644 --- a/conditional_if_elif.py +++ b/conditional_if_elif.py @@ -1,15 +1,15 @@ def main(): - Age=input("enter your Age:") - if(int(Age)>=8 and int(Age)<=10): + Age = int(input("enter your Age : ")) + if(Age >= 8 and Age <= 10): print("children") print("children") print("children") print("children") - elif(int(Age)>=11 and int(Age)<=15): + elif(Age >= 11 and Age <= 15): print("kids") - elif(int(Age)>=16 and int(Age)<=18): + elif(Age >= 16 and Age <= 18): print("Tingers") - elif(int(Age)>=19 and int(Age)<=30): + elif(Age >= 19 and Age <= 30): print("Young") else: print("Out of range") @@ -19,4 +19,4 @@ def main(): -if __name__ == '__main__':main() \ No newline at end of file +if __name__ == '__main__':main()