Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. print("Hi, I'm Pywans, your digital assistant.")
  2. print("Let's do this thing!")
  3. user_name = input("What is your name? ")
  4. print("Hello, " + user_name + ", welcome.")
  5. print("Let's calculate the area of a circle!")
  6. input1 = input("What is the circle's radius?  ")
  7. radius = float(input1)
  8. result = 3.14 * (radius * radius)
  9. output = str(result)
  10. print("A circle of radius " + input1 + " has an area of " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement