Advertisement
lubattillah

ifelse

May 10th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. phrase=input("Talk to me > ")
  2. if phrase=="hi":
  3. print("hello")
  4. print("Nice to meet you,"+" "+"I am Lubattillah")
  5. print("I am Vikwato from Kilimanjaro")
  6. print("That's great!, I am from Tabora")
  7. activity=input("What has brought you here > ")
  8. if activity=="business":
  9. print("Welcome, there are plenty of businesses here but what is it specifically")
  10. else:
  11. print("Sorry I dont understand this")
  12. print("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement