Dec-19-2016, 05:50 PM
This is Not homework assignment. I am beginner to programing itself, just started with python.
What i want to achieve is this:
Example:
System Info:
1. Win 7
2. Python 3.5
What i want to achieve is this:
- Ask a question to user.
- Get answer to above from user (numbers only)
- Based on above answer, create something:
what it that something should be?- a list
- a variable
- a dictionary
- a list
- When something is created, that something will be getting user input till it reaches the value given at the first input ( i.e. at step which is marked in bold)
Example:
- A. How many cars, you have given on rent?
- B. This is user input, which only should accept numbers.
> Ans/Value Input by user : 5
[# So the user has given 5 cars on rent.]
- C. Now I want the user to input rental income of each of those 5 cars.
> incomeFromCarOne = 1200
> incomeFromCarTwo = 2450 etc...
> till incomeFromCarFive is reached.
- D. If user input value is nil/zero or blank, the script should stop.
[# What i mean by that is, script should go to next line of code which is independent of above.]
System Info:
1. Win 7
2. Python 3.5