Q&A Discussions
Can I shorten this code?
8 Votes
4 Answerscan 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
8 Votes
2 AnswersIn the short code below, I declared an array of five elements. But I'm getting confused on how to use it in a while loop. My main question is , if the user inputs a userchoice1 value that is less than 1, I want the code to keep looping until the user inputs a number that is not less than 1. But I don't know if the 7th line (userchoice1 [x]++) shows the right way to loop it.
8 Votes
2 AnswersHot today
Credit card valudator
2 Votes
How to modify list in python
0 Votes
How to find factorial
1 Votes
How to use css?
1 Votes
How i print not duplicate data
0 Votes
Code Coach
1 Votes
Can someone help me with this?
1 Votes