Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. print("Hello, I am Sparky, your personal bot.")
  2. username = input ("What is your name? ")
  3. print("Let's get going, "+ username)
  4. print("")
  5. print("Let's determine the current draw of a light bulb")
  6. input1 = input("Wattage >")
  7. input2 = input("Voltage >")
  8. number1 = float(input1)
  9. number2 = float(input2)
  10. result = number1 / number2
  11. output = str(result)
  12. print(input1 + " Watts Divided by " + input2 + " Volts = "+ output + " Amps")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement