Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Ecrit ton programme ici ;-)
- admin="yaaqoub"
- introduction=input("hello, i am the admin " + admin + " ,may i ask you some questions? ")
- if introduction=="yes" or introduction=="ok":
- name=input(" Ok, what is your name? ")
- else:
- print(" Ok, have a nice day ")
- age=input("How old are you "+ name + "?")
- age1=int(age)
- if age1>=18 and age1<=50:
- question1=input("ok "+ name + " we play numbers?")
- else:
- print(" ok, have a nice day " + name)
- if question1=="yes" or question1=="ok":
- number1=input("enter a number please")
- number2=input("enter a seconde number please")
- num_1=int(number1)
- num_2=int(number2)
- result=(num_1+num_2)
- output=str(result)
- print(number1 + "+" + number2 + "=" + output)
- print("thanks for your colabortion " + name)
- else:
- print("thanks for your colabortion " + name)
- print("bye")
- if age1>=20 and age1<=50:
- question2=input("you want that we do an area calculation "+ name + "? ")
- if question2=="yes" or question2=="ok":
- length=input("So,first you need to enter a length")
- Width=input("Now you enter a width,so i can calculate the area ")
- elif qestion2=="no" or question2=="nop" or question2=="nono":
- print("ok, thanks, have a nice day ")
- else:
- print("Sorry, can't understand ")
- ar_1=int(length)
- ar_2=int(Width)
- result=(ar_1*ar_2)
- area=str(result)
- print("The area that you seek for is "+ area)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement