DEV Community

R.Shobika CSE
R.Shobika CSE

Posted on

PYTHON DAY-6

TYPE OF ARGUMENTS:

  • Positional Arguments

  • Default Arguments

  • Keyword Arguments

  • Variable length Arguments

  1. 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)
Enter fullscreen mode Exit fullscreen mode

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))
Enter fullscreen mode Exit fullscreen mode

example:

def add(num1,num2):
     return num1+num2
result=add(10,10)
     print(result)
print(type(add))
Enter fullscreen mode Exit fullscreen mode

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)