- Jul 12, 2019
- 2,297
- 2,115
- 54
- Country
- United States
- Gender
- Male
- Faith
- Christian
- Marital Status
- Married
- Politics
- US-Republican
Hi all,
If anyone knows Python I could use some help. I need to make a class that takes user input to add numbers to a list then sum the numbers so if the user enters 1, 2, and 3 the sum of 3 + 2 + 1 would be 6, than I have to reverse the list (I know there is a reverse function) and finally show the list as entered.
I can do this:
Converting the three-digit number to a string to get each individual character. You should use modulus and divide.
I can't:
print in any method of the class
Using input in any method of the class.
I am totally lost.
If anyone can help I would so greatful
If anyone knows Python I could use some help. I need to make a class that takes user input to add numbers to a list then sum the numbers so if the user enters 1, 2, and 3 the sum of 3 + 2 + 1 would be 6, than I have to reverse the list (I know there is a reverse function) and finally show the list as entered.
I can do this:
Converting the three-digit number to a string to get each individual character. You should use modulus and divide.
I can't:
print in any method of the class
Using input in any method of the class.
I am totally lost.