Plzz tell me one thing if I want to run a print in a single line... Without line free \n what code I should used? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

Plzz tell me one thing if I want to run a print in a single line... Without line free \n what code I should used?

For example. To run this line in a single line print('AS') print(2+2) print('is not always') What should use bw print words used??

4th Aug 2019, 2:15 PM
Ateex Taseer
Ateex Taseer - avatar
1 Réponse
+ 7
You can do that like this way print("as", end =" ") print(2+2, end=" ") print("is not always")
4th Aug 2019, 2:26 PM
GAWEN STEASY
GAWEN STEASY - avatar