Class 12 python project || class 12 computer science project in python

Pubblicato il: 20 marzo 2021
sul canale di: Rajat Bisht
301
9

special thanks:    / @bhaskarbhatt1372  
and    / @aryantalks  

code:
@author: Rajat Bisht, Bhaskar Bhatt
import pyttsx3
import datetime as dt

def speak(speech):
bol.say(speech)
bol.runAndWait()

bol=pyttsx3.init()
totala=0
totalp=0
totall=0
speak("please enter the following details")
name=input("Enter name (exclude file extension) of file which has names of students: ")
names=name+'.txt'
with open(names, 'r') as f:
st = [line.strip() for line in f]
a=str(dt.datetime.now())
date = a[0:11]
sayy="Enter class and section: "
speak(sayy)
clss=input(sayy)

say1=('''Mark your attendance
type p for present
a for absent
l for leave
!!!!input is case sensitive!!!!!''')
print(say1)
speak(say1)

for i in st:
with open(f"{date}_{clss}-Attendance.csv","a+") as file:
attend = input(f"{i}: ")
if attend=="p":
totalp+=1
file.write(f"{i},Present\n")

elif attend=="a":
totala+=1
file.write(f"{i},Absent\n")

elif attend=='l':
totall+=1
file.write(f"{i},Leave\n")

else:
say2="Error 404: focus on work not found"
print(say2)
speak(say2)
with open(f"{date}_{clss}-Attendance.csv","a+") as file:

attend = input(f"{i}: ")
if attend=="p":
totalp+=1
file.write(f"{i},Present\n")

elif attend=="a":
totala+=1
file.write(f"{i},Absent\n")

elif attend=='l':
totall+=1
file.write(f"{i},Leave\n")

else:
say3=('''Error 404: focus on work not found
Now I am not going to help you
do your work manually
this is your punishment
hahaahaha''')
print(say3)
speak(say3)

print("total students present= ",totalp)
print("total students absent are= ",totala)
print("total students leave are= ",totall)

with open(f"{date}_{clss}-totalAttendance.txt","a") as file:
file.write(f"total students present= {totalp}\n")
file.write(f"total students absent= {totala}\n")
file.write(f"total students on leave= {totall}\n")
file.write('''
------------------------------end--------------------------
\n''')

with open(f"{date}_{clss}-Attendance.csv","a+") as file:
file.write('''-------------------------------end---------------------------
\n''')
speak("Your work is saved successfully")

tags:
#Python,
#SchoolProject,
#CbseProject,
#Class12Project,
#PythonProject,
#AttendanceRegister,
cs project class 12 python,
cbse class 12 python projects,
class 12 python project,
class 12 python project cbse,
python project class 12,
python project,
class 12 ip python project,
cbse class 12 ip project python,
project in python,
python projects for class 12 cbse,
cbse class 12 python project,
Attendance register with python,
digital attendance register with python.


In questa pagina del sito puoi guardare il video online Class 12 python project || class 12 computer science project in python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Rajat Bisht 20 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 301 volte e gli è piaciuto 9 spettatori. Buona visione!