+ 1
Can you solve this output problem please thank you
4 Answers
+ 1
For you to get the values of x, y and z, remove the quotes. Values between quotes are interpreted as literal strings.
Also, if you need a list with these values, you can assign a list directly:
list_variable = [<Value 1>, <Value 2>, ...]
+ 4
you are appending a string instead of the variable to your list, just do this instead
mohsah.append(x)
mohsah.append(y)
mohsah.append(z)
I hope this help :)
+ 2
What do you expect as an output?
+ 1
I want to make a list and user inputs the values of x ,y,z then these values be in list of mohsah