Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Lakshmi Pritha Nadesan
Lakshmi Pritha Nadesan

Posted on

     

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)

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
piggo151 profile image
Cole Hauser
"Professional" Indy Dev. Hi! I'm Cole Hauser. Contact me at coleht151@gmail.com if you're looking to collaborate!
  • Joined

Nice!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I am studying Python Full Stack Developer course
  • Joined

More fromLakshmi Pritha Nadesan

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp