New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
can someone tell me how to make it impossible for a user to type a 'userchoice1[x]' value that does not range from 1 - 10.
If you also know a way I can make the user input another value for the 'userchoice1[x]' variable if it is less than 1, I'll appreciate you share the knowledge with me.
please see the short code below
1 Vote
2 AnswersShare files
1 Vote
2 Answers? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 Votes
6 AnswersJust wanted to share DevDocs
6 Votes
1 AnswerHot today
Is the AI course worth the $49?
1 Votes
Comparing code coach solutions
3 Votes
General python
0 Votes
Where to use
0 Votes
Coding path
0 Votes
How to win bits
1 Votes
Road Runner!!! ✌🏻🙌🏻
1 Votes