0% found this document useful (0 votes)
6 views1 page

Python_test

The document contains three programming questions for a Python test. The first question involves creating a program to manage names and ages of individuals using a dictionary, while the second question focuses on developing a Course Enrollment System. The third question requires a program to print even numbers from a list until the number 237 is reached.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Python_test

The document contains three programming questions for a Python test. The first question involves creating a program to manage names and ages of individuals using a dictionary, while the second question focuses on developing a Course Enrollment System. The third question requires a program to print even numbers from a list until the number 237 is reached.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

​ ​ ​ ​ ​ Python Test

Question 1:- ​

●​ Write a Python program that:


1.​ Takes the names and ages of 5 people as user input.
2.​ Stores this information in a dictionary with names as keys and ages as values.
3.​ Displays the name of the oldest and youngest person.
4.​ Updates the age of a person based on user input.
5.​ Deletes a person from the dictionary based on user input.
6.​ Displays all the names in alphabetical order.

Question 2:-

●​ Create a Python program to manage a Course Enrollment System that allows Users
to
○​ Add courses
○​ Enroll students,
○​ View enrolled students by course,
○​ Generate a summary report of total courses and students.
○​ Record the date and time of enrollment and display it next to each student's
name.

Question 3:-

●​ Write a python program to print all even numbers from a given list of numbers in

the same order and stop printing any after 237 in the sequence.

Sample numbers list:

numbers = [ 386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345,

399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217, 815, 67, 104,

58, 512, 24, 892, 894, 767, 553, 81, 379, 843, 831, 445, 742, 717, 958,743, 527]

You might also like