Awsome123's Posts
Nairaland Forum › Awsome123's Profile › Awsome123's Posts
1 (of 1 pages)
Please anybody help me out? Why is this code not printing 'ans'? It keep return 'ans' is not defined. def check(): . ans=None . ans1 = input ("Yes or No? " ![]() . ans = ans1.capitalize() . while ans != 'Yes' and ans != 'No': .. ans2 = input ("Respond Yes or No " ![]() .. ans = ans2.capitalize() check() print (ans) Note: 1 dot (.) represents single indent, while 2 dots (..) represents double indent. Thank you. |
I'm a Python student. Who wants to collabo? |
With what you've said maybe I'll just try the python and SQL and just try to get through university without going insane.How far? Have you learnt the Python language? |
1 (of 1 pages)
