ARTIFICIAL CODEWALA
Menu
HOME
SITEMAP
CONTACT US
PRIVACY POLICY
TO SEARCH USERID IN PYTHON
ARTIFICIALCODEWALA
April 26, 2021
#To search the userid
import pandas as pd
import numpy as np
print("1. For yes")
print("2. For no")
admin=int(input("enter your choice"))
if admin==1:
adm1=int(input("ADMIN ID"))
adm2=int(input("PASWORD"))
dt2=pd.read_csv("/storage/emulated/0/WhatsApp Business/Media/python/adminid.docx")
dtf1=pd.DataFrame(dt2)
flag=0
for(row,rowseries)in dtf1.iterrows():
if rowseries["USER_ID"]==adm1 and rowseries["PASWORD"]==adm2:
flag=1
if flag==1:
af1=0
print("USER WANTS")
print(" 1.BUY")
print (" 2.NOT TO BUY")
af1=int(input("enter your choice"))
if af1==1:
print(" 1. LIST OF ITEMS\n 2. NONE OF ABOVE")
ap=int(input("enter your choice"))
if ap==1:
print("1. COPY\n 2. TOFFEE")
ad=int(input("ENTER YOUR CHOICE"))
if ad==1:
print("1. For good quality")
print("2. For very good quality")
a13=int(input("enter your choice"))
if a13==1:
print("Rs 30 per copy")
a14=int(input("enter no of copy to buy"))
a15=a14*30
print("you have to pay Rs.", a15)
elif a13==2:
print("Rs 50 per piece of copy")
a16=int(input("enter no of copy to be buy"))
a17=a16*50
print("you have to pay Rs", a17)
else:
print("invild input")
elif ad==2:
print("1. For munch")
print("2. For darry milk")
a18=int(input("enter your choice"))
print("Rs 5 per tofee")
a0=int(input("enter no of tofee"))
a19=a0*5
print("you have to pay Rs", a19)
else:
print("linvild input")
elif ap==2:
print("THANKS FOR YOUR VALUABLE TIME")
if af1==2:
print("THANKS FOR YOUR VALUABLE TIME")
0 Comments
Popular Posts
Matrix Multiplication in C
August 14, 2022
Email Newsletter
September 20, 2024
Square Root
August 24, 2022
SERIES CONCEPT OF ATTRIBUTES
April 26, 2021
CONVERT FLASH TO USB USING CMD
August 14, 2022
Categories
C Programming
11
C++
1
DSA
1
HTML
1
Java oops
1
MACHINE LEARNING
1
MYSQL
5
NATURAL LANGUAGE PROCESSING
1
Pen Drive
2
PYTHON
17
SHARING APP
1
UI/UX
3
Total Pageviews
0 Comments