0

How to make that?

I want to write this...↓ 1:2 2:4 3:8 But It write that 1: 2 2: 4 3: 8 https://code.sololearn.com/cXYWg8PsvKwZ/?ref=app

9th Apr 2019, 5:48 PM
DANIEL1475
DANIEL1475 - avatar
3 Respuestas
0
You can do print("1:", end="") to make the next printed output appear on the same line.
9th Apr 2019, 6:07 PM
Russ
Russ - avatar
0
Thank you
9th Apr 2019, 6:10 PM
DANIEL1475
DANIEL1475 - avatar
0
You can write it like this too: print ("1 :",int(x)**int(1))
9th Apr 2019, 7:48 PM
Lighton
Lighton - avatar