The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
Core python.pptx
1.
2. Python is an interpreted language used for various
purposes.
It includes :
1.software development.
2.Mathematics
3.System scripting
-Web development(server side)
4.Conduct data analytics
3. › Python is the most easiest language because their syntax
is similar to English language.
› For eg.
› In order to print hello world :
› The code is print(“hello world”)
13. for i in range(10):
if i==5:
break
print(i)
else:
print(“am else part”)
Used for iterating over a
sequence.
for i in “quadraplus”:
print(i)
14. › Eg:
› def my_fun(age):
› print(“my age is: “)
› x=int(input(“enter your age”)
› y=int(input(“enter your age”)
› my_fun(x)
› my_fun(y)
› Functions in Python:
A function is a block of
organized, reusable code
that is used to perform a
single, related action.
Functions provide better
modularity for your
application and a high
degree of code reusing.
As you already know, Python
gives you many built-in
functions like print(),
etc. but you can also create
your own functions. These
functions are called
user-defined functions.