0% found this document useful (0 votes)
4 views2 pages

Python Programming Assignments Guide

Uploaded PPTs are good
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)
4 views2 pages

Python Programming Assignments Guide

Uploaded PPTs are good
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

📘 Assignment 1: Introduction to Python

 Explain features of Python. Why is Python suitable for rapid application development?
 What are Python’s applications in different domains?
 Differentiate between compiler and interpreter in context of Python.
 Explain identifiers, keywords, variables with examples.
 Write a program to swap two numbers without using a third variable.
 Write a program to check whether a given number is even or odd.

 Program to print "Hello GTU".


 Program to calculate simple interest.
 Program to find factorial of a number using loop.
 Program to print Fibonacci series up to n terms.
 Program to check whether a number is prime.

📘 Assignment 2: Data Types, Operators, Control Flow


 Explain Python data types with examples.
 Write a short note on mutable and immutable types in Python.
 What are Python operators? Explain arithmetic and logical operators with examples.
 Differentiate between if-else and elif statement.
 Write a program to find the largest of three numbers.
 Write a program to calculate sum of digits of a number.

 Program to check whether a year is leap year.


 Program to display multiplication table of a given number.
 Program to reverse a given number.
 Program to count vowels in a string.
 Program to print all even numbers between 1 and 100.

📘 Assignment 3: Strings, Lists, Tuples, Dictionaries


 Explain string manipulation functions in Python with examples.
 Differentiate between list and tuple with suitable examples.
 What is dictionary in Python? Explain with example.
 Write a program to count occurrence of each word in a given string.
 Write a program to find largest and smallest element from a list.
 Write a program to demonstrate use of nested list.

 Program to reverse a string using slicing.


 Program to check whether a string is palindrome.
 Program to merge two lists and sort them.
 Program to convert list into set and remove duplicates.
 Program to create a dictionary of student names and marks, and print topper.

You might also like