0

Successive printing in Python

How can i print string or number consecutive in IDLE python? When I print want print how many number this is result 1 2 3 4 I want print these number consecutive

9th Apr 2020, 8:54 AM
Ali Khosroanjam
Ali Khosroanjam - avatar
7 Antworten
+ 4
ÀŁÍ simply write print(i,end=" ") instead of print(i)
9th Apr 2020, 1:47 PM
Muhammad Faheem Nasir
Muhammad Faheem Nasir - avatar
+ 3
if you are trying to print your data consecutive like 1234 , try print(number,end="")
9th Apr 2020, 9:12 AM
Muhammad Faheem Nasir
Muhammad Faheem Nasir - avatar
+ 3
ÀŁÍ you are welcome 💙
10th Apr 2020, 5:22 AM
Muhammad Faheem Nasir
Muhammad Faheem Nasir - avatar
+ 2
Thanks very much Mohammad Faheem🙌🙌🙌🙌
10th Apr 2020, 5:21 AM
Ali Khosroanjam
Ali Khosroanjam - avatar
+ 1
Can you attach your code to give a better understanding of the problem
9th Apr 2020, 9:02 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
For example this code in IDLE python for i in range(1, 5): print(i) Result: 1 2 3 4 But I want result be this: 1 2 3 4
9th Apr 2020, 12:14 PM
Ali Khosroanjam
Ali Khosroanjam - avatar