- 7

Help me out... X=4 x_=5 print__

Python

19th Dec 2016, 6:44 PM
sley dimz
sley dimz - avatar
20 Réponses
+ 3
Welcome to the community! :-) Your request: x = 4 x _= 5 print__ You may only work with what you have at your disposal. to print a variable you enclose it with parentheses. when it comes to *blank* = 5, it is an 'operator'. # Other operators could be used but might be wrong at this early state, to stay in content: x = 4 x <= 5 # (or += 5) - but like I said it may not accept that this early on. print(x) Explanation: x is 4 (which is lower than 5). operator " <= " says "if 5 is higher or equal to x (which is 4), then print the variable x. The output will then simply be: >>>4 The opposite to <= would be >= and means quite the reversed - '4 is higher or equal'. Hope this helped you out on your quest. Dr.
19th Dec 2016, 7:18 PM
Tristan McCullen
Tristan McCullen - avatar
+ 1
x=4 x+=5 print (x) --> (x) ;-)
10th Apr 2018, 7:48 PM
Lorenzo Peretti
Lorenzo Peretti - avatar
+ 1
x=4 x+=5 print ? can you help me to solve the above problem 9 is nor Ans
8th Feb 2022, 5:46 PM
Solomon Ayalew
0
Tristan McCullen why did you use <= ? I know maybe I missed something but Im very fresh in coding and every good advice is very welcome and appreciate. I cant figure out why you used < in your code? x=4 x<=5 print(x) Should be x=4 x+=5 print(x)
1st May 2018, 11:21 PM
Bitcracker
Bitcracker - avatar
0
Which statement ends the current iteration and continues with the next one?
2nd Oct 2018, 5:32 PM
abhishek kumar singh
0
x = 10 y = 20 if x > y print("if statement") else print("else statement") it's wrong because there is another blanck!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30th May 2019, 12:41 AM
Ahmed Karam
Ahmed Karam - avatar
0
help x = 10 y = 20 x > y print("if statement") print("else statement")
5th Nov 2020, 11:17 AM
Richard Asamoah
Richard Asamoah - avatar
0
fuck
21st Mar 2021, 6:43 AM
Brave Lion
Brave Lion - avatar
0
x = 8 ____ printing x print(x) help me please
7th Apr 2021, 12:04 PM
Rogelio B. Catubig Jr.
Rogelio B. Catubig Jr. - avatar
0
oh bhai maro
15th Apr 2021, 2:04 PM
Rakesh Kotagi
Rakesh Kotagi - avatar
0
Imprimir (x)
7th May 2021, 11:18 PM
Sofi Kaboom
Sofi Kaboom - avatar
0
heeeeeelp me
29th Jul 2021, 2:01 AM
Boltie
Boltie - avatar
0
How you solve the spider man practice im lost
10th Nov 2022, 1:33 PM
Victor Rodriguez
Victor Rodriguez - avatar
0
x=4 x+=5 print(x) #the output will be 9
22nd Nov 2022, 10:14 AM
Animesh Verma
Animesh Verma - avatar
- 1
Help Me PLEASEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29th Sep 2019, 8:26 PM
Preston
- 2
x = 3 num = 17 print(num % x)
26th Dec 2020, 4:38 AM
Yasser Laassiri
Yasser Laassiri - avatar
- 2
It say 9 is incorrect
10th Apr 2021, 8:35 PM
EtienneDubief
- 3
x=4 x+=5 print (x) /= (x) Ans=9
6th Sep 2018, 7:46 AM
anusak01
- 4
>>> x = 4 >>> x += 5 >>> print (x)
25th Oct 2018, 2:52 PM
Houcem Eddine Aouissaoui
Houcem Eddine Aouissaoui - avatar