Input only takes strings?
-
So I have this code
a = input("Number 1", false) b = input("Number 2", false) print("The two numbers added qual ", a + b) update() sleep(1)
I'm just wondering how I can make it compute 1+1=2 and not 1+1=11
Does input only take strings?
Should I be using getkeyboardBuffer()? -
@digdug Yes it does but you can cast the result
so something like
a = int(input("Number 1", false))
You could also use getkeyboardBuffer to read the keyboard input yourself
-
@pianofire I was doing the int wrong. Thank you!