TYPE OF ARGUMENTS:
Positional Arguments
Default Arguments
Keyword Arguments
Variable length Arguments
- Positional Arguments:
- When we call a function without using a keyword is called positional arguments
def add(num1,num2):
return num1 + num2
result=add(5,5)
print(result)
output:
10
how to find a one variable type?
- we have to find the variable type means by the using the "type"
Syntax
print(type(add))
example:
def add(num1,num2):
return num1+num2
result=add(10,10)
print(result)
print(type(add))
output:
100
American Standard Code For Information Interchange
- In Python, ASCII (American Standard Code for Information Interchange) refers to a character encoding standard that assigns numeric values from 0 to 127 to 128 specific English characters, digits, punctuation marks, and control codes
What is Modularity?
sentence : Breaking into Pieces/words
segments separate
Top comments (0)