+ 1

Does using ; at any point in python causes any prob .

15th Aug 2020, 5:58 PM
stoped
stoped - avatar
6 Answers
+ 5
Semicolon at the end of line is redundant and not necessary in python. End of line implies the end of statement. You can put it between two statements on a single line x = 1; y = 7 But this is not pythonic style and you should not use it really.
15th Aug 2020, 6:13 PM
Tibor Santa
Tibor Santa - avatar
+ 8
As far as I know, Python doesn't uses ';'(semicolon) it uses ':' (colon) and it's used at the end of functions. It's(semicolons)used in other languages but not in python. Also, don't use irrelevant tags. You've tagged (translated from Hindi to English): 'Does your toothpaste have salt?' What's this?? It makes me laugh 😂 Edit: You've edited your question now. It's fine now.
15th Aug 2020, 6:05 PM
Arctic Fox
Arctic Fox - avatar
+ 6
It will always give a syntax error (mostly) Show me where you've used it and you got no error. And please stop using irrelevant tags because it reduces the accuracy of search bar. Nothing works fine by using irrelevant tags. Edit: Okay, I didn't knew about it, Thanks Tibor Santa for telling me about it but it's still not mostly used.
15th Aug 2020, 6:14 PM
Arctic Fox
Arctic Fox - avatar
+ 3
yes
15th Aug 2020, 6:00 PM
Oma Falk
Oma Falk - avatar
15th Aug 2020, 6:22 PM
stoped
stoped - avatar
+ 1
Rishabh When i used semicolon all things went perfect no syntax error or something like that am asking will it cause any error/s later N i like using irrevelant tags always work fine for me 😂 https://code.sololearn.com/cKHtc0UXVezV/?ref=app
15th Aug 2020, 6:10 PM
stoped
stoped - avatar