Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hello, I am Sparky, your personal bot.")
- username = input ("What is your name? ")
- print("Let's get going, "+ username)
- print("")
- print("Let's determine the current draw of a light bulb")
- input1 = input("Wattage >")
- input2 = input("Voltage >")
- number1 = float(input1)
- number2 = float(input2)
- result = number1 / number2
- output = str(result)
- print(input1 + " Watts Divided by " + input2 + " Volts = "+ output + " Amps")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement