(ii).What is a function? Explain any two functions.
Answers
Answered by
4
A function is a block of reusable code to perform a specific task.
2 widely used functions in python are:
- print()
- len()
The print() function prints the specified message to the screen, or other standard output device.
The message can be a string, or any other object, the object will be converted into a string before written to the screen.
The len() function returns the number of items in an object.
When the object is a string, the len() function returns the number of characters in the string.
Answered by
0
Answer:
tutti
Explanation:
zzzzzzzzzzzzzzzzzzzzzz
Similar questions