Full stack python developer - Day 2

lakshmi_prithanadesan_32

Lakshmi Pritha Nadesan

Posted on November 12, 2024

Full stack python developer - Day 2

Today I learned about
1.Introduction of python
2.Functions
3.Difference between User defined and predefined functions
4.Arguments
5.Function call
6.write a calculate program to with and without Function.

***Example:*

My first Program

name = input("What is your name?")
print("Welcome to Python", name)

Calculate Program without function:**
no1=120
no2=40
print(no1+no2)
print(no1-no2)
print(no1*no2)
print(no1/no2)

Calculate Program with function:

def calculate(no1,no2):
print(no1+no2)
print(no1-no2)
print(no1*no2)
print(no1/no2)

no1=120
no2=40
calculate(no1,no2)

💖 💪 🙅 🚩
lakshmi_prithanadesan_32
Lakshmi Pritha Nadesan

Posted on November 12, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Python - Functions
python Python - Functions

November 12, 2024

Full stack python developer - Day 2
python Full stack python developer - Day 2

November 12, 2024