+ 1

Fill in the blanks to declare a variable, add 5 to it and print its value. >>> x = 4 >>> x __ = 5 >>> print __ What is the answer for above question?

This is one of the questions that I got from this app

23rd Jun 2016, 2:40 AM
Suresh K L
Suresh K L - avatar
71 Respuestas
+ 16
I believe this is the correct answer you're looking for: x = 4 x += 5 print(x) "x = 4" declares the variable "x += 5" is a faster way of saying "x = x + 5" "print(x)" prints it's value Hope that helped!
23rd Jun 2016, 2:50 AM
Dean
+ 4
yeah,I also think Dean's answer is correct.
23rd Jun 2016, 2:44 PM
Bruce Lee
Bruce Lee - avatar
0
Make sure you add the parenthesis, this is python 3. Print will not work without (x)
17th Nov 2017, 4:06 AM
Matt
Matt - avatar
0
return
6th Mar 2018, 1:53 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
0
so anser is 9
29th Mar 2018, 1:46 AM
Moses
0
x-=3
29th Mar 2018, 2:40 AM
Moses
0
it worked
20th May 2018, 11:00 PM
Prince Sedem Semanshia
Prince Sedem Semanshia - avatar
0
fill in the blacks to print"you rock!" to the screen if variable a is greater than 12 and variable b is less than or equal to 76 int a=44; int b=33; if(a>12 b<= ){cout<<"you block"<<endl;} Amir Ahmad
30th Aug 2018, 10:36 PM
Lesley Tulienge
Lesley Tulienge - avatar
0
what is the answer just tell me please
9th Sep 2018, 10:51 AM
Sahan D
Sahan D - avatar
0
>>> x = 4 >>> x + = 5 >>> print (x)
25th Sep 2018, 11:12 AM
Niraj kumar
Niraj kumar - avatar
0
Fill in the blank to declare a variable var that contains only positive numbers.
29th Nov 2018, 4:09 PM
Muhammad Tanveer
Muhammad Tanveer - avatar
0
i dont get it, whats the awnser
30th Jan 2019, 2:21 PM
saoirse doyle
0
HI
29th Mar 2019, 2:58 PM
Josejulian Camberos
Josejulian Camberos - avatar
0
??
1st Apr 2019, 4:34 PM
Natalia
Natalia  - avatar
0
it #
3rd Apr 2019, 2:03 PM
Hassiel Gurrola
Hassiel Gurrola - avatar
0
thanks dean!
7th May 2019, 2:46 PM
Ryan Leggett
0
x + = 5 #add + sign in the first blank print(x) #add (x) after print
23rd May 2019, 3:17 PM
NEELESH RAMANE
NEELESH RAMANE - avatar
0
1: + 2: (x)
24th Sep 2019, 8:49 AM
BHUVANENDRA CHOWDARY V
BHUVANENDRA CHOWDARY V  - avatar
0
Fill in the blank to comment out the text: x = 8 printing x print(x) What is the answer for this question?
15th Oct 2019, 9:04 AM
Prionti Deb
0
Fill in the blank with the output of this code. >>> 1 + 2 + 3 + 4.0 + 5
28th Dec 2019, 1:14 PM
zubair
zubair - avatar