0
How to convert this code into python
int x=1; cout<<"x = "<<x;
4 Answers
0
x=1
print("x=",x)
Hope that helps.
+ 3
x = 1
Print("x=",x)
0
Thanks .got it
0
You can also use the + operator, but you need to convert your int into a string. That gives :
print("x= " + str(x))