Python Projects For Kids@Preshnave Muthukutty
Python Projects For Kids@Preshnave Muthukutty
for
STUDENTS
Prepared By
M. PRESHNAVE MUTHUKUTTY
UGC NET | CTET | TRB | TNEB | GATE | ESE | UPSC | NEET | TET | SET | SSC | CAT | MAT | TNPSC
Configuration Details:
Configuration Details:
variable4=("Chennai")
print(variable1+variable2+variable3+variable4)
Configuration Details:
Configuration Details:
20
23.5
<class 'float'>
20.0
23
Configuration Details:
Transport is a fundamental requirement of modern life, but the traditional combustion engine is
quickly becoming outdated. Petrol or diesel vehicles are highly polluting and are being quickly
replaced by fully electric vehicles. The running cost of an electric vehicle is much lower than an
equivalent petrol or diesel vehicle. Electric vehicles use electricity to charge their batteries instead
of using fossil fuels like petrol or diesel. Electric vehicles are more efficient, and that combined
with the electricity cost means that charging an electric vehicle is cheaper than filling petrol or
diesel for your travel requirements. Using renewable energy sources can make the use of electric
vehicles more eco-friendly. The electricity cost can be reduced further if charging is done with the
help of renewable energy sources installed at home, such as solar panels. Electric vehicles have
very low maintenance costs because they don’t have as many moving parts as an internal
combustion vehicle.
Configuration Details:
**
***
****
*****
Configuration Details:
print(j, end='')
print()
12
123
1234
12345
123456
1234567
12345678
Configuration Details:
#Enter Inputs
First_number=int(input("Enter the value of a:"))
Second_number=int(input("Enter the value of b:"))
if First_number>Second_number:
print("Greater Number is:", First_number)
print("First_number is greater than Second_number")
print("Condition is True")
else:
print("Greater Number is:", Second_number)
print("Condition is False")
Condition I:
Condition is True
Condition is False
Configuration Details:
#Input Inititalization
Name=str(input("Enter the character:"))
#Count Operation
counter=Name.count('g')
print("Count of 'g' in given input is:"+str(counter))
counter=Name.count('e')
print("Count of 'e' in given input is:"+str(counter))
Transport is a fundamental requirement of modern life, but the traditional combustion engine is
quickly becoming outdated. Petrol or diesel vehicles are highly polluting and are being quickly
replaced by fully electric vehicles. The running cost of an electric vehicle is much lower than an
equivalent petrol or diesel vehicle. Electric vehicles use electricity to charge their batteries instead
of using fossil fuels like petrol or diesel. Electric vehicles are more efficient, and that combined
with the electricity cost means that charging an electric vehicle is cheaper than filling petrol or
diesel for your travel requirements. Using renewable energy sources can make the use of electric
vehicles more eco-friendly. The electricity cost can be reduced further if charging is done with the
help of renewable energy sources installed at home, such as solar panels. Electric vehicles have
very low maintenance costs because they don’t have as many moving parts as an internal
combustion vehicle.
Configuration Details:
#Getting Input
First_Number=int(input("Enter the value of First Number:"))
Second_Number=int(input("Enter the value of Second Number:"))
Third_Number=float(input("Enter the value of Third Number:"))
#maximum Search
maximum=max(First_Number,Second_Number,Third_Number)
print("The largest number in a given input is:", maximum)
#Getting Input
First_Number=int(input("Enter the value of First Number:"))
Second_Number=int(input("Enter the value of Second Number:"))
Third_Number=float(input("Enter the value of Third Number:"))
#maximum Search
minimum=min(First_Number,Second_Number,Third_Number)
print("The smallest number in a given input is:", minimum)
Configuration Details:
Configuration Details:
#Find Average
average=(total/500)*100
print(average)
#Find Grades
marks=100
if marks >=90:
print("A+ Grade")
print("Very Good")
elif marks >=80:
print("A Grade")
491
98.2
A+ Grade
Very Good
Configuration Details:
a=open("mydata.txt", "w")
a.write("College of Engineering\n")
a.write("Anna University\n")
a.write("Tamil Nadu\n")
a.write("Chennai")
a.close()
College of Engineering
Anna University
Tamil Nadu
Chennai
a=open("mydata.txt", "w")
a.writelines(my_content)
College of Engineering
Anna University
Tamil Nadu
Chennai
a=open("mydata.txt", "w")
a.write(details+ "\n")
a.close()
College of Engineering
Anna University
Tamil Nadu
Chennai
a=open("mydata.txt","r")
College of Engineering
Anna University
Tamil Nadu
Chennai
a=open("mydata.txt","r")
mydata=a.readlines()
a.close()
print(mydata[details])
College of Engineering
Anna University
Tamil Nadu
Chennai
a=open("mydata.txt","r")
mydata=a.readlines()
a.close()
print(mydata[details])
print(mydata[-1])
College of Engineering
Anna University
Tamil Nadu
Chennai
Chennai
Configuration Details:
import mysql.connector
con=mysql.connector.connect(host="localhost",user="root",password="",database="project1"
)
def select():
res=con.cursor()
sql="SELECT ID, NAME, AGE, CITY from users"
res.execute(sql)
result=res.fetchall()
print(result)
while True:
print("1. Insert Data")
print("2. Update Data")
print("3. Select Data")
print("4. Delete Data")
print("5. Exit")
choice=int(input("Enter Your Choice:"))
if choice==1:
name=input("Enter name:")
age=input("Enter age:")
city=input("Enter city:")
insert(name, age, city)
elif choice==2:
id=input("Enter the id:")
name=input("Enter name:")
age=input("Enter age:")
city=input("Enter city:")
update(name, age, city, id)
elif choice==3:
select()
elif choice==4:
id=input("Enter the id to delecte:")
delete(id)
elif choice==5:
quit()
else:
print("Invalid Selection...Please Try Again!")
1. Insert Data
2. Update Data
3. Select Data
4. Delete Data
5. Exit
Enter age:24
2. Update Data
3. Select Data
4. Delete Data
5. Exit
Enter age:24
Configuration Details:
1. Problem Create student name list and student mark list using Pandas
2. Solver Python
3. Compiler Visual Studio Code Compiler
import pandas as pd
dataset = {
'Students_names' : ["Suruthi", "Monish Kumar", "Dinesh Kumar", "Hari Ram", "Tharini",
"Antli Sumin"],
'Students_marks' : [92, 85, 93, 88, 96, 98]
}
class_result = pd.DataFrame(dataset)
print(class_result)
Students_names Students_marks
0 Suruthi 92
1 Monish Kumar 85
2 Dinesh Kumar 93
3 Hari Ram 88
4 Tharini 96
5 Antli Sumin 98
Configuration Details:
Configuration Details:
Configuration Details: