We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce7e2fb commit b63aa3dCopy full SHA for b63aa3d
find_cube_root.py
@@ -19,12 +19,12 @@ def cubeRoot():
19
20
cubeRoot()
21
22
-cont = str(input("Would you like to continue: "))
23
-while cont == "yes":
+cont = input("Would you like to continue: ")
+while cont == "yes" or "y":
24
25
- cont = str(input("Would you like to continue: "))
26
- if cont == "no":
+ cont = input("Would you like to continue: ")
+ if cont == "no" or "n":
27
exit()
28
else:
29
print("Enter a correct answer(yes or no)")
30
0 commit comments