PROGRAMMING
GAME DEVELOPMENT
;
to join two statements
Semicolons are not required in python, but there is a special use for it. You can use semicolon to write two executable statements in a single line.
CODE SNIPPETS
;
to join two Executable Statements/
to break code into multiline codelen()
, find()
, replace()
& split()
zip
function to iterate over two Listsdel
, remove()
or pop()
insert()
, reverse()
& sort()
What is Studytonight?
Tutorials
Learn to Code
Interview Questions
/code/python/use-semicolon-for-multiple-statements.php