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)

25th Mar 2022, 1:19 AM
Knowledge Is Power
Knowledge Is Power - avatar
11 odpowiedzi
+ 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)
25th Mar 2022, 2:12 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 6
Pydroid3
25th Mar 2022, 3:26 AM
NEZ
NEZ - avatar
+ 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)
25th Mar 2022, 3:15 AM
NEZ
NEZ - avatar
0
What are you trying to do?
25th Mar 2022, 2:52 AM
NEZ
NEZ - avatar
0
Strings and integers
25th Mar 2022, 3:13 AM
Knowledge Is Power
Knowledge Is Power - avatar
0
Which compiler is best for input console? Sublime i cant
25th Mar 2022, 3:16 AM
Knowledge Is Power
Knowledge Is Power - avatar
0
Compiler Solo uses Its working fine here
25th Mar 2022, 3:22 AM
Knowledge Is Power
Knowledge Is Power - avatar
0
Thank you for your support👍🙏
25th Mar 2022, 3:47 AM
Knowledge Is Power
Knowledge Is Power - avatar
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)
26th Mar 2022, 8:47 AM
Saeed Kholousi
Saeed Kholousi - avatar
- 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
25th Mar 2022, 2:44 AM
Knowledge Is Power
Knowledge Is Power - avatar
- 2
I am trying to print Math is important entry_one which is by user to input Then result of c
25th Mar 2022, 2:54 AM
Knowledge Is Power
Knowledge Is Power - avatar