50% found this document useful (2 votes)
1K views2 pages

Python List of Programs

The document outlines the objectives and outcomes of a Python Programming Lab course for 4th year B.Tech students. The objectives are to introduce core Python programming basics using functions and object-oriented programming concepts. The outcomes are for students to understand scripting languages and Python's built-in objects, and be able to create network and web applications. It then lists 20 programming problems to be completed in the course covering Python data types, operators, strings, dates, lists, tuples, dictionaries, conditionals, functions, classes, files and more.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
50% found this document useful (2 votes)
1K views2 pages

Python List of Programs

The document outlines the objectives and outcomes of a Python Programming Lab course for 4th year B.Tech students. The objectives are to introduce core Python programming basics using functions and object-oriented programming concepts. The outcomes are for students to understand scripting languages and Python's built-in objects, and be able to create network and web applications. It then lists 20 programming problems to be completed in the course covering Python data types, operators, strings, dates, lists, tuples, dictionaries, conditionals, functions, classes, files and more.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

Department of Computer Science and Engineering

PYTHON PROGRAMMING LAB


B.Tech. IV Year I Sem (R16) Course Code: CS751PC
Course Objectives:
 To be able to introduce core programming basics and program design with functions
using Python programming language.
 To understand a range of Object-Oriented Programming, as well as in-depth data and
information processing techniques.
 To understand the high-performance programs designed to strengthen the practical
expertise.
Course Outcomes:
 Student should be able to understand the basic concepts scripting and the
contributions of scripting language
 Ability to explore python especially the object oriented concepts, and the built in
objects of Python.
 Ability to create practical and contemporary applications such as TCP/IP network
rogramming, Web applications, discrete event simulations
List of Programs:

1. Write a program to demonstrate different number data types in Python.

2. Write a program to perform different Arithmetic Operations on numbers in Python.

3. Write a program to create, concatenate and print a string and accessing sub-string from a given
string.

4. Write a python script to print the current date in the following format:
“Sun May 29 02:26:23 IST 2017”

5. Write a program to create, append, and remove lists in python.

6. Write a program to demonstrate working with tuples in python.

7. Write a program to demonstrate working with dictionaries in python.

8. Write a python program to find largest of three numbers.

9. Write a Python program to convert temperatures to and from Celsius, Fahrenheit.


[ Formula: c/5 = f-32/9]
10. Write a Python program to construct the following pattern, using a nested for loop
*
**
***
****
*****
****
***
**
*

11. Write a Python script that prints prime numbers less than 20.

12. Write a python program to find factorial of a number using Recursion.

13. Write a program that accepts the lengths of three sides of a triangle as inputs. The program
output should indicate whether or not the triangle is a right triangle (Recall from the
Pythagorean Theorem that in a right triangle, the square of one side equals the sum of the
squares of the other two sides).

14. Write a python program to define a module to find Fibonacci Numbers and import the
module to another program.

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

16. Write a script named copyfile.py. This script should prompt the user for the names of two
text files. The contents of the first file should be input and written to the second file.

17. Write a program that inputs a text file. The program should print all of the unique words in
the file in alphabetical order.

18. Write a Python class to convert an integer to a roman numeral.

19. Write a Python class to implement pow(x, n)

20. Write a Python class to reverse a string word by word.

You might also like