What is statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is statement

how different between function and statement

8th Jan 2021, 12:54 PM
Thite Thite Tun
Thite Thite Tun - avatar
4 Answers
+ 5
Print was a statement in Python 2 and became a function in Python 3. See this for an explanation https://snarky.ca/why-print-became-a-function-in-python-3/
8th Jan 2021, 1:55 PM
David Ashton
David Ashton - avatar
+ 4
1.A statement is an instructions that tell the language implementation to "go do something". 2.A function is a group of statements that together perform a task.
8th Jan 2021, 1:04 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
8th Jan 2021, 12:58 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
All thank.😁
10th Jan 2021, 3:01 PM
Thite Thite Tun
Thite Thite Tun - avatar