What happens if we put ";" at each line in PYTHON | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What happens if we put ";" at each line in PYTHON

About python fundas and it's difference from java

2nd May 2019, 9:33 AM
Subhadip Das
Subhadip Das - avatar
7 Answers
+ 10
In python you could use ';' to separate commands in the same line. Example: print(1) print(2) print(3) print(1);print(2);print(3)
2nd May 2019, 9:56 AM
Javier Felipe Toribio
Javier Felipe Toribio - avatar
+ 6
Thx friends🙏🙏
2nd May 2019, 4:16 PM
Subhadip Das
Subhadip Das - avatar
+ 5
I knew it but I was just questioning others. Simply a time pass
3rd May 2019, 5:06 AM
Subhadip Das
Subhadip Das - avatar
+ 4
😁😁😁😁😁
3rd May 2019, 5:06 AM
Subhadip Das
Subhadip Das - avatar
+ 2
Javier Felipe Toribio thanks for a new knowledge, i will prank my friend by making single line code.
2nd May 2019, 2:06 PM
Nopparuj
Nopparuj - avatar
+ 2
why dont you just do it to find out for yourself??
2nd May 2019, 9:54 PM
Logomonic Learning
Logomonic Learning - avatar
+ 1
just do it if you want to but you dont need it, Python is chill
2nd May 2019, 2:05 PM
Nopparuj
Nopparuj - avatar