Anshu1python Word

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

SUMMER TRAINING

PYTHON
SUBMITTED to SUBMITTED by
Mr. MAYUR DEV SEWAK ANSHU KATIYAR
General manager, operations
Eisystems Services ECE 2022
SCRIET 100190030 CCSU M20090507
Ms. MALLIKA SRIVASTAVA
Trainer ,Programming
Eisystems Services
OUTLINES
1 History
2 What is python?
3 Python features.
4 Keywords in python.
5 Variables and data types.
6 Scope of Python.
7 Who uses python today.
8 Project.
History
WHAT IS PYTHON?
• Python is high level programming language.
• Python is object-oriented programming with dynamic semantics.
• Python supports multiple programming paradigms, including OOP,
imperative and procedural style.
• Python has very easy and simple syntax.
• Python is scripting language.
Python Features
• Python provides interfaces to all major commercial databases.
• Python supports GUI applications.
• Python supports modules and packages.
(Why do people use python)
• Python is object –oriented
• It‟s free (open source)
• It‟s powerful
• It‟s portable
Python has a very simple syntax

• Print(“Hello World”) (program to print hello world)

• a=10
b=20
total=a+b
print(“sum is”, total) (program to add two numbers)
KEYWORDS IN PYTHON

There are 33 keywords in python


Variables and Data Types
Scope of Python

: Machine learning, Artificial Intelligence, Image Processing


: Science
Bioinformatics
: System Administration
Unix
Web logic
Web sphere
: Web Application Development
CGI
Who uses python today…

>Google makes extensive use of Python in its web search system.


>The YouTube video sharing service is largely written in python.
>Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and IBM use Python for
hardware testing.
Project Assigned: ATM machine programming

• Here, at first the user has to enter an existing pin, when the pin matches to the atm pin which is
written in program the program proceed toward the next procedure .

• While depositing or withdrawing amount, he/ she just has to enter the amount then the program
calculates the total remaining balance of the respective account and display to the user. And the
user can view all these transactions from the account statement.

• It’s detailed analysis and It’s detailed working is next slide.


Working

• Step-1
• We will open our code editor like vs code ,pycharm etc.
• Step-2
• When we will go in ATM machine then we first insert our ATM card so
“Plese insert your ATM card”
• And then after this the User will be given a break of 5 sec then ask his ATM card PIN
• We import time module for break time
time .sleep (5)
Password=4221
Working

• Step-2
• We create a pin name variable in this we use a input type function because we will take input from
user
pin = int(input(“ENTER YOUR ATM PIN “))
• Actually the ATM pin is numeric form but input function take ans in string form that’s why we will
take used int function
• Then the user resultent is int form

• Step-3
• After this create a user balance

A
Working

balance =5000
• And if the pin is correct then the next process will be pushed to the user other
wise our code blocked the user
• In this process we will use if ,else statement
if pin == 4221:
pass
else
print (“YOU ENTER THE WRONG PIN : Try again “)
Working

• When the user pin currect then the screen pushed this so we run while
loop
While true :
print (1= “check balance”)
print (2= “withdrawal money”)
print (3= “deposit money”)
print (4= “exit”)
Working
• And the next stage we ask the user to choose any option and kepp inside try and except
try:
option = int(input(“choose any option above”))
If the user not select 1,2,3,4 choose any other number then we use
except
except:
print(“please choose the valid option”)
Step-4
In this stage we work on all 4 option
Working
• We use if statement
if option == 1 :
• user check his balance
print (f “your current balance is „{balance}”)
• for better looking then we use this statement
Print(", , , , , , , , , , , , , ")
Step-5
If option ==2
It means user withdrawal her money
then we ask how many amount you withdrawal in your account
Working
withdrawal_ money =int( input(" enter your withdrawal amount"))
• For better looking we use this statement
Print(", , , , , , , , , , , , , ")
• And in this step we also create a formula if user balance is 5000 and user
withdrawal x amount and the current amount is 5000 +x
balance = balance - withdraw _ money
• Then the user screen show you want money is debited in your account
with the help of this statement
Print (f'{ withdraw _ money is debited from your account }')
• and also user screen his total balance with the help of this statement
Working
print(f” your current balance is {balance }”)
Step-6
if option ==3
• if user choose option 3 that means user deposit money in his account
• So next step we ask to user how many money you deposit in your account
deposit_ money = int (input(“please enter your deposit amount “))
• And we also create a formula to add user money
• Balance = balance – deposit_ money
• for better looking
Print(", , , , , , , , , , , , , ")
Working
• Step-7
• If option ==4
• That means user cancel the program user exit and last we show a thank
you to user screen with the help of this statement
• Print("Thank you for visiting our ATM machine ")_ _ _ _see you again
• Otherwise we use else and
• Print (“wrong pin try again”)

You might also like