0
Python
I am just getting Math is important thatâs all rest of my program does not work Why?? my_voice = Math is important print(my_voice) entry_one = input () a = int(input()) b = 7 c = a+b print(my_voice,cost)
11 Answers
+ 7
There is no variable "cost", and "Math is important" must be in quotation marks.
That works:
my_voice = "Math is important"
print(my_voice)
entry_one = input ()
a = int(input())
b = 7
c = a+b
print(my_voice,c)
+ 6
Pydroid3
+ 2
Knowledge Is Power
my_voice = 'Math is important'
print(my_voice)
entry_one = input ()
a = int(input())
b = 7
c = a+b
#printing the input taken as string
print(entry_one)
#printing the sum of a+b (b is 7, a is input taken) that is c
print(c)
0
What are you trying to do?
0
Strings and integers
0
Which compiler is best for input console?
Sublime i cant
0
Compiler Solo uses
Its working fine here
0
Thank you for your supportđđ
0
my_voice = 'Math is important'
print(my_voice)
entry_one = input ()
a = int(input())
b = 7
c = a+b
print(entry_one)
print(c)
- 2
After fixing the error i dont get an input window for user while compiling
It simply prints Math is important
I am using sublime IDE
- 2
I am trying to print
Math is important
entry_one which is by user to input
Then result of c