Advertisement
TonyMo

bot.py

Oct 15th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # Furture Learn - New project Bot
  2. # Programming-101: an introduction to python for educators
  3. # for P3: users_name = input("What is your name? ") Use raw_input for P27
  4. # Challenge
  5. # print a static welcome message
  6. # Use input to ask the user’s name and store it in a variable called users_name.
  7. # Use print and the users_name variable to display a “Welcome [name]” message.
  8.  
  9. print(" Hallo, I am Fred, your friendly bot.")
  10. users_name = input("Please type your name. ")
  11. print("Hallo " + users_name + ", a warm welcome to you.")
  12. # NameError: name 'Print' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement