Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
34 views
42 pages
Ai Project File (Tarun)
Class 10
Uploaded by
tarunbhadoriyaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Ai Project File (Tarun) For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
34 views
42 pages
Ai Project File (Tarun)
Class 10
Uploaded by
tarunbhadoriyaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Ai Project File (Tarun) For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Ai Project File (Tarun) For Later
You are on page 1
/ 42
Search
Fullscreen
NO.1 AIR FORCE SCHOOL, GWALIOR ARTIFICIAL INTELLIGENCE PYTHON PROJECT FILE NAME= TARUN SINGH BHADORIYA CLASS=. 10TH (A) ROLL NUMBER= 26 SUBMITTED TO: SUBMITTED BY: MS. DEEPALI AROTA TARUN SINGH BHADORIYA1. Write a Python code to calculate Simple Interest if the PRINCIPAL AMOUNT= 2000, RATE OF INTEREST = 8 and TIME = 10. 2. Write a Python code to calculate Area of a triangle with Base and Height. 3. Write a Python code to check whether a person is eligible to vote or not. 4, Write a Python code to assign the Grade based on the given percentage. 5. Write a program to print a multiplication table of the entered number. 6. Write a program to check whether the given character is an uppercase letter or lowercase letter ora digit or a special character. 7. Write a program to find the maximum number out of the given three numbers. 8 Write a program to create a list and display list elements. 9. Write a program to add the elements of the two lists. 110. Create a list in Python of children selected for science quiz with following namesArjun, Sonakshi, Vikram, Sandhya, Sonal, Isha, Kartik Perform the following tasks on the list in sequence- ‘© Print the whole list ‘© Delete the name “Vikram” from the list ‘© Add the name “Jay” at the end ‘© Remove the item which is at the second position. 1L1. Python Program to Find the Factorial of a Number. 12. Python Program to Find the Largest Among Three Numbers. 13. Python Program to Check if a Number is Positive, Negative, or 0. 14. Write a program that classifies a person as a child, teenager, adult, or senior based on their age. 15. Create a program that generates a list of squares of numbers from 1 to 10 using list comprehension. +16. Write a program that checks whether a given letter is a vowel or a consonant. 17. Write a program that allows the user to create a shopping list. The user should be able to add items, view the list, and remove items. Implement append () and remove () methods. 18. Create a program that allows the user to enter a list of names and then insert a new name at 3 specific index. Handle any potential index errors. 19. Write a program that creates a tuple contai the tuple 20. Write a program that creates a dictionary to store information about a person (name, age, and city). Print the dictionary. Create a dictionary with three key-value pairs representing a book (title, author, year). ig the names of five of your favourite movies. Print‘Write a program to access and print each value.ACKNOWLEGDEMENT lextent my sincere thaws to all the individuals awd organizations who have contributed to the successful completion of this covaputer project. Their valuable inputs and suggestions significantly improved the quality of have vay work. lam also indebted to my computer teacher for their collaboration and hard work, which have been vital to the project’s accomplishments. Finally, | would Lie to express my gratitude to my mentors for their guidance and support throughout this Journey.principle amount rate_of_interest time = 10 2000 Hou o simple_interest = (principle_amount * rate_of interest #4 Iprint("Simple Interest is:", simple interest) Bas @eG9 gua: 2 oePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f or more information. >>> = RESTART: C:/Users/Lenovo/program 1.py Simple Interest is: 1600.0 >>> on. Boos we Bua€ -lbase=int (input ("enter the base of the triangle")) area=(0.5) *base*height print('the area of triangle is',area) 80 He yt Bas #580 @8n0O+Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f or more information. >>> = RESTART: C:/Users/Lenovo/program 2.py enter the height of the triangle6 enter the base of the triangle5 the area of triangle is 15.0 >>>| es wea we OO gua- E980 utage = int(input("Enter your age") )| if age >= 18: print("You are eligible to vote.") lelse: print("You are not eligible to vote.") as. Base atO9 Buao- 28 FFD nanPython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f or more information. >>> = RESTART: C:/Users/Lenovo/program 3.py Enter your agel6 You are not eligible to vote. >>>| as wae wb O09 gua. -percentage = float(input("Enter your percentage: ")) if percentage >= 90: grade = "A+" elif percentage >= 80: grade = "A" elif percentage >= 70: grade = "B" elif percentage >= 60: grade = "'C" elif percentage >= 50: grade = "D" else: grade = "F"| print("Your grade i: :", grade) as Bas #600 gua 267 e90Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f£ or more information. >>> = RESTART: C:/Users/Lenovo/program 4.py Enter your percentage: 74 Your grade is: B >>> as Boas #600 mua. -mumber = int(input("Enter the number: ")) jprint(f£"Multiplication table of {number}:") for i in range(1, 11): print (£"{number} x {i} = {number * i}") Basu we OO Basor more information. [>>> == RESTART: C:/Users/Lenovo/program 5.py = Enter the number: 25 Multiplication table of 25: 25 x HPOeMeIDHe®WNH N a RRR KKK KKK Bas #6 O09 gua -character = input("Enter a character: ") if character.isupper(): print("The character is an uppercase letter.") elif character.islower(): print("The character is a lowercase letter.") elif character.isdigit(): print("The character is a digit.") lelse: print("The character is a special character.") a Boss wb 80 ena s 20% 980 wePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f£ or more information. >>> = RESTART: C:/Users/Lenovo/program 6.py Enter a character: A The character is an uppercase letter. >>>| oo Boas #600 gua 7 i"Inuml = float(input("Enter the first number: ")) num2 float (input ("Enter the second number: ")) num3 float(input("Enter the third number: ")) max_num = max(numl, num2, num3) print (£"The maximum number is: {max_num}") or. rice wb OO guao-: 20% 9 He anPython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f£ or more information. >>> = RESTART: C:/Users/Lenovo/program 7.py Enter the first number: 45 Enter the second number: 89 Enter the third number: 32 The maximum number is: 89.0 >>> si ir #6 O09 gua -6list = [10, 20, 30, 40, 50] iprint("The elements of the list are:") for element in list: print (element)| a0 F940 ye ase we O9 szaliPython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f or more information. >>> = RESTART: C:/Users/Lenovo/program8.py The elements of the list are: om Boas #600 exo -6Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22 :03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" f£ or more information. >>> list1=[1,2,3] >>> list2=[4,5,6] >>>listl+list2 [1, 2, 3, 4, 5, 6] >>>| Bas #.O9 suas -Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> children = ["Arjun", "Sonakshi", "Vikram", "Sandhya", "Sonal", "Isha", " Kartik"] >>> print (children) ['Arjun', 'Sonakshi', 'Vikram', 'Sandhya', 'Sonal', 'Isha', 'Kartik'] >>> children. remove ("Vikram") >>> print (children) ['Arjun', 'Sonakshi', ‘Sandhya’, 'Sonal', ‘Isha', 'Kartik'] >>> children. append ("jay") >>> print (children) ['Arjun', 'Sonakshi', 'Sandhya', 'Sonal', ‘Isha', 'Kartik', 'jay'] >>> children .pop (1) *Sonakshi' >>> print (children) ['arjun', ‘Sandhya’, ‘Sonal', ‘Isha’, ‘Kartik’, ‘jay'] >>> ex mam we O09 guas 26 248 neInum = int (input ("Enter a number: ")) if num < 0: print("Factorial is not defined for negative numbers.") elif num == 0 or num == 1: print(£"The factorial of {num} is 1. else: factorial = 1 for i in range(1, num + 1): factorial *= i print (£"The factorial of {num} is (factorial).") ex Par wu BO gua. a F cuePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Lenovo/program11.py Enter a number: 5 The factorial of 5 is 120. >>> ex mas we O09 guas 26% 948 nnInuml = float (input ("Enter the first number: ")) Inum2 = float(input ("Enter the second number: ")) Inum3 = float(input("Enter the third number: ")) A£ num1 >= num2 and num1 >= num3: largest = numl elif mum2 >= numl and num2 >= num3: largest = num2 else: largest = num3 [print (£"The largest number among {num1}, B= Pr m~uBo {num2}, and {num3} is {largest}.") oe erPython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Lenovo/program12.py Enter the first number: 15 Enter the second number: 25| Enter the third number: 45 The largest number among 15.0, 25.0, and 45.0 is 45.0. >>> ex mas we OO guas 26 F988 nenum = float(input ("Enter a number: ")) if num > 0: print (f"The number {num} is positive.") elif mum < 0: print(£"The number {num} is negative.") else: print ("The number is zero I ok Boome m~uBoPython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Lenovo/pprogram13.py Enter a number: -1 The number -1.0 is negative. >>> ex mam we O09 guas +67 eaeten tose Br oe = age = int (input ("Enter the age: if age < 0: print ("Age elif age <= 12: print("The person is a Child. elif age <= 19: print ("The person is a Teenager jelif age <= 59: print("The person is an Adult.") else: not be negative.") print("The person is a Senior.") ex Bae wu BO gua oe erePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Lenovo/program14.py Enter the age: 17 The person is a Teenager. >>> ex mas we O09 guas 67 eaesquares = [x**2 for x in range(1, 11)] print ("List of squares from 1 to 10:", squares) ex Bae mu BO uO er erePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> RESTART: C: /Users/Lenovo/program16.py List of squares from 1 to 10: [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] >>> ex mam we OO guas 26% 948 aneletter = input("Enter a letter: ").lower() if len(letter) == 1 and letter.isalpha(): if letter in ‘aeiou': print(£"'{letter}' is a vowel else: print(£"'{letter}' is a consonant.") jelse: print ("Invalid input. Please enter a single letter ex Bas #b BO l@nO+ 20% 40 tePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> RESTART: C: /Users/Lenovo/program16.py sx wae @eO0 euea- 30% ome anshopping_list=["football”, "studs", "jersey"] item=input ("enter an item to add:") shopping_list.append (item) print (shopping_list) item_to_remove=input ("enter an item to remove shopping_list. remove (item_to_remove) print (shopping_list)| ex ice @uBO gua: 26 9 8® tePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Lenovo/program17..py enter an item to add:waterbottle ['football', ‘studs', ‘jersey', 'waterbottle'] enter an item to remove: studs ['football', ‘jersey', 'waterbottle'] >>> on am «eB gues 06 FF 8© unelist=["kk", "samridhi", "shanvi","shiv"] list. insert (2, "princess") print (list)| = Bom @n BO BEG 26 FeePython 3.12.1 (tags/v3.12.1:2305ea5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on © win32 Type “help", "copyright", "credits" or "license()" for more information. >>> werner eeeneeeenaeenseeaaaa= RESTAR! \Users\Lenovo\programl® py —========maanmmmnnnmnnnan ('kk', ‘samridhi', ‘princess’, 'shanvi', ‘shiv'] = ices een OB0 gua. a osePython 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", >>> favorite_movies=("salaar","my fault" >>> print (favorite_movies) (salaar', ‘my fault', ‘bahubali', >>> "eredits" or "license()" for more information. hubali", "animal", "kalki 2898ad") ‘animal’, 'kalki 2898ad') Fo 0w wt ex mam 580 euas2 peptone 08H fperson_infom{'name':‘tarun', ‘age':'16', ‘city’: 'gwalior'} (print (person_info) morgan housel', ‘year! :'2020'} Ibook_ingo={‘name':'the psychology of money', ‘author': [print (book_info) Bos 6s O80 BEos -0%Python 3.12.1 (tags/v3.12.1:2305ea5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on © win32 Type “help", "copyright", "credits" or "license()" for more information. >>> = RESTART: C:/Users/Lenovo/program20.py (*name'; ‘tarun', 'age': '16", ‘city’: ‘gwalior') (’name!': ‘the psychology of money', ‘author!: ‘morgan housel', 'year': '2020') >>> Bass ee B89 (eae. +a % eeeCONCLUSION tw conclusion, Artificial intelligence, ranging from narrow Al to supertntelligent Al, has profounaly impacted various sectors, from healthcare to transportation. Its ability to analyse vast amounts of data and make predictions has led to increased efficiency ano new opportunities. However, it also presents ethical challenges that_we must navigate carefully. As we move forward, it is eruetal to continue researching and developing Al im a responsible manner, ensuring that it serves as a tool for human betterment while mitigating potential risks.
You might also like
Python Practice Codes
PDF
No ratings yet
Python Practice Codes
9 pages
HHW IP - Merged
PDF
No ratings yet
HHW IP - Merged
10 pages
DS Assignment 1 2
PDF
No ratings yet
DS Assignment 1 2
16 pages
Adjusted Python Lab Solutions
PDF
No ratings yet
Adjusted Python Lab Solutions
4 pages
Python Programming Lab (21AML38)
PDF
No ratings yet
Python Programming Lab (21AML38)
31 pages
Python Programs To Practice.
PDF
No ratings yet
Python Programs To Practice.
16 pages
Practical File
PDF
No ratings yet
Practical File
9 pages
Exp1
PDF
No ratings yet
Exp1
10 pages
Ram Prakash
PDF
No ratings yet
Ram Prakash
53 pages
Python Record1
PDF
No ratings yet
Python Record1
17 pages
Python Practical
PDF
No ratings yet
Python Practical
38 pages
Ix Python Practical File
PDF
No ratings yet
Ix Python Practical File
9 pages
Python Lab File
PDF
No ratings yet
Python Lab File
32 pages
Class 8-1
PDF
No ratings yet
Class 8-1
9 pages
I Puc P+c+cs Lab Manuals 2024-25
PDF
No ratings yet
I Puc P+c+cs Lab Manuals 2024-25
99 pages
Python Practical File With Code
PDF
No ratings yet
Python Practical File With Code
4 pages
Pythonlabfilemk
PDF
No ratings yet
Pythonlabfilemk
17 pages
Class X - Practicals of AI
PDF
No ratings yet
Class X - Practicals of AI
9 pages
Python Practical Question
PDF
No ratings yet
Python Practical Question
5 pages
Python Practical Assignment
PDF
No ratings yet
Python Practical Assignment
7 pages
Share 1st Pu Lab Programs
PDF
No ratings yet
Share 1st Pu Lab Programs
8 pages
Jasmine Practical File IP
PDF
No ratings yet
Jasmine Practical File IP
91 pages
Codessverygood
PDF
No ratings yet
Codessverygood
16 pages
Python 2018
PDF
No ratings yet
Python 2018
19 pages
Practicals - IP - Grade XI
PDF
No ratings yet
Practicals - IP - Grade XI
17 pages
Shakthi Py-Record 12
PDF
No ratings yet
Shakthi Py-Record 12
56 pages
Python Practice Examples
PDF
No ratings yet
Python Practice Examples
80 pages
Practical Assignment Xi SC (CS) - 2022-23
PDF
No ratings yet
Practical Assignment Xi SC (CS) - 2022-23
8 pages
Ix Lab PGMS 24 25 250204 193427
PDF
No ratings yet
Ix Lab PGMS 24 25 250204 193427
13 pages
Python All
PDF
No ratings yet
Python All
12 pages
Karan CS Assignment
PDF
No ratings yet
Karan CS Assignment
18 pages
Pankajip 1
PDF
No ratings yet
Pankajip 1
24 pages
Practical FIle Solution XI IP
PDF
No ratings yet
Practical FIle Solution XI IP
7 pages
Kendriya Vidyalaya: NAME: Amogh R. Joshi Class: X TH A Roll No.: 25 SUBJECT: Artificial Intelligence
PDF
No ratings yet
Kendriya Vidyalaya: NAME: Amogh R. Joshi Class: X TH A Roll No.: 25 SUBJECT: Artificial Intelligence
14 pages
CW Lab 23u02116 Shankar
PDF
No ratings yet
CW Lab 23u02116 Shankar
31 pages
Python Question Bank
PDF
No ratings yet
Python Question Bank
10 pages
AI-Python Codes-IX-2023-24
PDF
No ratings yet
AI-Python Codes-IX-2023-24
6 pages
CW Lab 23U02122 Ayush
PDF
No ratings yet
CW Lab 23U02122 Ayush
31 pages
Python ESE Practical List Apna Logic M
PDF
No ratings yet
Python ESE Practical List Apna Logic M
7 pages
Assignment 1 Word
PDF
No ratings yet
Assignment 1 Word
24 pages
Python Practical 11th Cbse
PDF
No ratings yet
Python Practical 11th Cbse
36 pages
Python Program FINAL PDF
PDF
No ratings yet
Python Program FINAL PDF
22 pages
Python 2
PDF
No ratings yet
Python 2
42 pages
Python and Mysql
PDF
No ratings yet
Python and Mysql
7 pages
Untitled 1
PDF
No ratings yet
Untitled 1
8 pages
Xi Assignment Beginning With Python Programing 04082024 222527
PDF
No ratings yet
Xi Assignment Beginning With Python Programing 04082024 222527
21 pages
Part A 1721573685
PDF
No ratings yet
Part A 1721573685
7 pages
Divisibles by 2&3
PDF
No ratings yet
Divisibles by 2&3
9 pages
Python Revision Class 9
PDF
No ratings yet
Python Revision Class 9
4 pages
Py Ws 3
PDF
No ratings yet
Py Ws 3
14 pages
Anil 1
PDF
No ratings yet
Anil 1
6 pages
Python ppjf1
PDF
No ratings yet
Python ppjf1
38 pages
Problem Solving Exercises
PDF
No ratings yet
Problem Solving Exercises
16 pages
List of Program For Practical File With Source Code
PDF
No ratings yet
List of Program For Practical File With Source Code
19 pages
CSE3011 - Python Programming - List of Experiments
PDF
No ratings yet
CSE3011 - Python Programming - List of Experiments
3 pages
Harsh CS
PDF
No ratings yet
Harsh CS
23 pages
Python Exercise-5
PDF
No ratings yet
Python Exercise-5
19 pages
Task 2 - Input Variables
PDF
No ratings yet
Task 2 - Input Variables
6 pages