0

How to convert this code into python

int x=1; cout<<"x = "<<x;

17th May 2019, 12:47 PM
Ajay Nair
Ajay Nair - avatar
4 Answers
0
x=1 print("x=",x) Hope that helps.
17th May 2019, 1:01 PM
Dan Karnaukh
+ 3
x = 1 Print("x=",x)
3rd Aug 2020, 5:28 PM
Vinayak Pandey
Vinayak Pandey - avatar
0
Thanks .got it
17th May 2019, 1:09 PM
Ajay Nair
Ajay Nair - avatar
0
You can also use the + operator, but you need to convert your int into a string. That gives : print("x= " + str(x))
17th May 2019, 4:56 PM
ThewyShift
ThewyShift - avatar