INTRODUCTION TO PYTHON PROGRAMMING .pptx

SanthoshRajan16 68 views 25 slides May 01, 2024
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation

basic knowledge for PYTHON Programming.
Welcome to the world of Python programming, where innovation meets simplicity. Python is a high-level, versatile programming language known for its readability and ease of use. It's widely used in various domains such as web development, data science, arti...


Slide Content

INTRODUCTION TO PYTHON PROGRAMMING Dr.M.Amsaprabhaa   Assistant Professor  Department of CSE Shiv Nadar University  Chennai 

What is Python? Python is a very popular general-purpose interpreted, interactive, object-oriented and high-level programming language. Python is dynamically-typed and garbage-collected programming language. It was created by Guido van Rossum during 1985- 1990. Guido van Rossum

Compiling and Interpreting

Why should we use Python? Python syntax allows programmers to express concepts in fewer lines of code. Python is commonly used for developing websites and software, task automation, data analysis, and data visualization. Since it's relatively easy to learn, Python has been adopted by many non-programmers such as accountants and scientists, for a variety of everyday tasks, like organizing finances.

Top reasons to learn python Data science Scientific and mathematical computing Web development Finance and trading System automation and administration Computer graphics Basic game development Security and penetration testing

Top companies using python

D ynamically-typed language means the type (for example- int , double, long, etc.) for a variable is decided at run time not in advance because of this feature we don’t need to specify the type of variable. A garbage collection in Python manages the memory automatically. In simpler terms, the process of automatic deletion of unwanted or unused objects to free the memory is called garbage collection in Python.

Python Keywords

Programming Basics

An   Integrated Development Environment  ( IDE ) is software for building applications that combines common developer tools into a single GUI.

Simple program print("Welcome to the World of Python!") text = "Welcome to the World of Python!" print(text) (Or)

input() function is used to take input from the user.

Comments:

Immutable is the when no change is possible over time. In Python, if the value of an object cannot be changed over time, then it is known as immutable. Once created, the value of these objects is permanent . A tuple is a non-homogeneous data structure that can hold a single row as well as several rows and columns.  Dictionary is a non-homogeneous data structure that contains key-value pairs. Tuples are represented by brackets (). Dictionaries are represented by curly brackets {}.

OUTPUT

Selection Selection in Python is made using the two keywords ‘if’ and ‘ elif ’( elseif ) and else

Functions Python used the keyword ‘ def ’ to define a function. Syntax: def function-name(arguments): # function body

As the name suggests it calls repeating things again and again.  Iteration/Looping

Module ‘import’ keyword is used to import a particular module into the python code.

print("Create a Password: ") cp = input() print("\ nEnter Two Numbers to Add: ") numOne = int (input()) numTwo = int (input()) print("\ nEnter Password to Display the Result: ") ep = input() if cp == ep: sum = numOne + numTwo print("\ nResult = ", sum) else: print("\ nWrong Password!") Simple program

REFERENCES