Docsity

AI Python bassic coding, Study notes of Computer science

Toggle sidebar
bg1
DELHI PRIVATE SCHOOL – DUBAI
GRADE 10 (2025-2026)
ARTIFICIAL INTELLIGENCE (SUBJECT CODE: 417)
UNIT 7: ADVANCE PYTHON – PRACTICALS
1. Write a Python program to print numbers from 1 to 20.
2. Write a Python program to convert Temperature from Fahrenheit (℉) to Celsius (℃).
3. Wrtie a Python program to implement working of the traffic signal with appropriate message.
4. Write a Python program to implement an ATM transaction with appropriate message.
5. Write a Python program to calculate the average of three subjects’ marks.
6. Write a Python program to calculate the area of a circle. Accept radius of a circle from the
user (hint: pi = 22/7)
7. Find the output of
(a) "RAVI"+"Kant"
(b) "###" * 3
8. Write a Python program to create a list of 5 different programming languages.
a) Accept list elements from the user.
b) Add list elements using append()
c) Display the list elements
d) Access and display the 3rd element of the list using positive indexing.
e) Access and display the last element of the list using negative indexing.
9. Write a Python program to create a list of 5 tourist places.
a) Accept list elements from the user.
b) Add list elements using append(), insert() and extend()
c) Display the list elements
d) Delete 2nd element of the list using pop()
e) Delete 3rd element of the list using remove()
10. Write a program to add the elements of the two lists.

Partial preview of the text

Download AI Python bassic coding and more Study notes Computer science in PDF only on Docsity!

DELHI PRIVATE SCHOOL – DUBAI

GRADE 10 (2025-2026)

ARTIFICIAL INTELLIGENCE (SUBJECT CODE: 417)

UNIT 7: ADVANCE PYTHON – PRACTICALS

  1. Write a Python program to print numbers from 1 to 20.
  2. Write a Python program to convert Temperature from Fahrenheit (℉) to Celsius (℃).
  3. Wrtie a Python program to implement working of the traffic signal with appropriate message.
  4. Write a Python program to implement an ATM transaction with appropriate message.
  5. Write a Python program to calculate the average of three subjects’ marks.
  6. Write a Python program to calculate the area of a circle. Accept radius of a circle from the user (hint: pi = 22/7)
  7. Find the output of (a) "RAVI"+"Kant" (b) "###" * 3
  8. Write a Python program to create a list of 5 different programming languages. a) Accept list elements from the user. b) Add list elements using append() c) Display the list elements d) Access and display the 3rd^ element of the list using positive indexing. e) Access and display the last element of the list using negative indexing.
  9. Write a Python program to create a list of 5 tourist places. a) Accept list elements from the user. b) Add list elements using append(), insert() and extend() c) Display the list elements d) Delete 2 nd^ element of the list using pop() e) Delete 3rd^ element of the list using remove()
  10. Write a program to add the elements of the two lists.