- 1

Can you help make this part of the code?

I want to make it so that the person who is typing could choose different numbers from 1 to 10. And, if they choose either 1 or 2 a sentence that I wrote under it will appear specifically for the numbers the person chose. But, I don’t know how to do that. elif Q3 1 or 2: print(" ") print("Ok. Thats not what were looking for in people, but if you feel that way fine.") elif Q3 3 or 4: print(" ") print("There could be room for improvment there, but for now it will do.") elif Q3 5 or 6: print(" ") print("Good enough. This seems like we could work with this.") elif Q3 7 or 8: print(" ") print("Ok! So you are pretty conident it yourslef. We will definentily remember this in the future.") elif Q3 9 or 10: print(" ") print("WOW!!! So you think you got this in the bag. Love your energy right now. Okay. Well then. Shall we continue?")

23rd Feb 2021, 7:52 AM
Canon Lucai-Sample
Canon Lucai-Sample - avatar
4 ответов
+ 1
and you should start by an 'if' statement... but you've already have asked this question and got those answers: it's a shame to have deleted it and repost exactly the same question, with the same errors, as if we do not have still answered your question ^^
23rd Feb 2021, 8:04 AM
visph
visph - avatar
0
you gotta insert it twice, like so: ... snippet ... elif Q3 == 1 or Q3 == 2: # whatever code here
23rd Feb 2021, 7:55 AM
Slick
Slick - avatar
0
visph im sorry. Im still new to python, and those answers were kind of difficult for me to understand. My dearest apoplogies.
23rd Feb 2021, 8:06 AM
Canon Lucai-Sample
Canon Lucai-Sample - avatar