0
What is the use of def statement
Even if i can print spam 3 times even without using the def statement?
3 Respuestas
+ 1
Def is used to define a function. and function are used when you have the same code that you want it to run with many variables so it's easier and cleaner to use a function. Hope you understand it😊.(this is in python by the way)