Home > Backend Development > Python Tutorial > Full stack python developer - Day 2

Full stack python developer - Day 2

Linda Hamilton
Release: 2024-11-13 13:13:02
Original
346 people have browsed it

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)

The above is the detailed content of Full stack python developer - Day 2. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template