I am a beginner in Python programming. Using Python3 for class.
The code I have is:
#!/usr/binpython3
import arduino
def loop():
contin = True
while contin:
userinput = input()
if userinput == "quit":
contin = False
else:
contin = True
I am stuck at the "userinput = input()" portion of my code. For some reason, my program would not ask user for the input. How can I fix this?
Thank you!
Are you actually calling the function? That is, are you saying loop() at the end of your code?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With