We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5145ae0 + c3fbc5e commit cc99f74Copy full SHA for cc99f74
calculator.py
@@ -44,7 +44,7 @@ def calc(k):
44
45
print ("\nScientific Calculator\nEg: pi * sin(90) - sqrt(81)")
46
47
- k = input("\nWhat is ")
+ k = raw_input("\nWhat is ") # Using input() function is causing NameError. Changing it to raw_input() fixes this.
48
49
k = k.replace(' ', '')
50
k = k.replace('^', '**')
0 commit comments