Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
Status: Open => Answered
RaiMan proposed the following answer:
ok, the principal approach is ok.
the return value of input() is a string. Python has a feature, to convert a
string into a number:
num =
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
RaiMan proposed the following answer:
ok, I just realized that masuo already mentioned the int() function and I have
to admit, that I was not aware of isdecimal().
But since this only works on unicode
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
masuo proposed the following answer:
If you want to convert a string to an integer , use the function (for example,
isdecimal()).
errmsg = ""
while True:
msg = "Input a number\n" +
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
masuo proposed the following answer:
sorry:
If you want to evaluate the input value, use the function (for example,
isdecimal()).
If you want to convert a string to an integer, use the function (for
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
Status: Answered => Open
Jenelle is still having a problem:
x= input("Input 1st Number:")
y= input("Input 2nd Number:")
op= input("choose operation to be used: + - * /")
if x == "1":
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
Status: Open => Answered
Eugene S proposed the following answer:
what's wrong with the solution I offered?
--
You received this question notification because your team Sikuli Drivers
is an answer
New question #271443 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271443
x = input("Input a number")
I want to let x accept an integer, not a string.
please help me
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
Status: Open => Answered
Eugene S proposed the following answer:
this has nothing to do with Sikuli but...
input doesn't have the ability to check the input type. You will have to
process it yourself.
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
Jenelle posted a new comment:
I need a number inputted by the user to automate in my calculator
Do you have any idea how to do it?
I want to make an automation where sikuli will ask the user to give two(2)
9 matches
Mail list logo