Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
31 views

Python Exam

The document contains programming exercises for students divided into groups. The first group of students are assigned exercises on writing Python code for graphs, finding prime numbers less than 20, and creating, appending and deleting lists. The second group is assigned exercises on converting between Celsius and Fahrenheit, converting integers to Roman numerals, and finding the largest of three numbers. The third group is assigned exercises on defining and importing modules, finding factorials using recursion, and determining if a triangle is right-angled using the Pythagorean theorem.

Uploaded by

Toufik Hossain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Python Exam

The document contains programming exercises for students divided into groups. The first group of students are assigned exercises on writing Python code for graphs, finding prime numbers less than 20, and creating, appending and deleting lists. The second group is assigned exercises on converting between Celsius and Fahrenheit, converting integers to Roman numerals, and finding the largest of three numbers. The third group is assigned exercises on defining and importing modules, finding factorials using recursion, and determining if a triangle is right-angled using the Pythagorean theorem.

Uploaded by

Toufik Hossain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

(1st Ten students)

1) Write a Python code for the below graphs.

2) Write a python program to print prim numbers less than 20.


3) Write a python program to create, append and delete a list and print the output in all cases.

(next ten students)

1)

2) Write a python program to convert temperature to and from Celsius to fahrenheit.

3) Write a Python class to convert an integer to a roman numeral.

(next ten students)


1)

2) Write a python program to find largest of three numbers.

3) Write a python program to define a module and import a specific function in that module to
another program.

(next ten students)

1)

2) Write a python program to find factorial of a number using recursion:

3) Write a python program to that accepts length of three sides of a triangle as inputs. The
program should indicate whether or not the triangle is a right-angled triangle (use
Pythagorean theorem):

You might also like