0% found this document useful (0 votes)
0 views

Practical File Questions

The document outlines a series of programming tasks to be completed, each with a specific focus such as input/output operations, number manipulations, and dictionary handling in Python. Each program has a designated date for input in the index, spanning from July 2024 to December 2024. The tasks range from basic operations like displaying messages to more complex tasks like generating Fibonacci series and manipulating dictionaries.

Uploaded by

YASH GAMER YT
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Practical File Questions

The document outlines a series of programming tasks to be completed, each with a specific focus such as input/output operations, number manipulations, and dictionary handling in Python. Each program has a designated date for input in the index, spanning from July 2024 to December 2024. The tasks range from basic operations like displaying messages to more complex tasks like generating Fibonacci series and manipulating dictionaries.

Uploaded by

YASH GAMER YT
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Practical File Questions

Date:-to be input in index :-26.7.2024

Program 1: Input a welcome message and display it.

(Ctrl+click on above link to see the solution)

Program 2: Input two numbers and display the larger / smaller number.

Program 3:Input three numbers and display the largest / smallest number

Date:-to be input in index :-30.8.2024

Program 4: Generate the pyramid patterns using nested loop.

Date:-to be input in index :-16.9.2024

Program 5:Determine whether a number is a perfect number, an armstrong


number or a palindrome.

Program 6:Input a number and check if the number is a prime or composite


number.

Program 7:Display the terms of a Fibonacci series.

Program 8:Compute the greatest common divisor and least common


multiple of two integers.
Program 9:Count and display the number of vowels, consonants,
uppercase, lowercase characters in string.

Date:-to be input in index :-26.11.2024

Program 10:Input a string and determine whether it is a palindrome or not;


convert the case of characters in a string.

Program 11: Find the largest/smallest number in a list/tuple

Program 12: Input a list of numbers and swap elements at the even
location with the elements at the odd location.

Program 13: Input a list/tuple of elements, search for a given element in the
list/tuple.

Program 14: Input a list of numbers and find the smallest and largest
number from the list.

Date:-to be input in index :-26.12.2024

Program 15: Create a dictionary with the roll number, name and marks of n
students in a class and display the names of students who have scored
marks above 75.

Program 16: Write a Python script to add a key to a dictionary.

Sample Dictionary : {0: 10, 1: 20}


Expected Result : {0: 10, 1: 20, 2: 30}

Program 17: Write a Python script to concatenate the following dictionaries to


create a new one.
Sample Dictionary :
dic1={1:10, 2:20}
dic2={3:30, 4:40}
dic3={5:50,6:60}
Expected Result : {1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6: 60}

Program 18: Write a Python script to check whether a given key already
exists in a dictionary.

Program 19: Write a Python script to generate and print a dictionary that
contains a number (between 1 and n) in the form (x, x*x).
Sample Dictionary ( n = 5) :
Expected Output : {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}

Program 20: Write a Python program to get the maximum and minimum
values of a dictionary.

You might also like