[go: up one dir, main page]

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

SEC Assignment 1

The document outlines an assignment for a Python programming course with a submission deadline of April 19, 2025. It includes 20 programming tasks such as temperature conversion, variable swapping, leap year checking, and more. Each task aims to enhance the student's coding skills in Python.

Uploaded by

tanikakumawat1
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)
7 views2 pages

SEC Assignment 1

The document outlines an assignment for a Python programming course with a submission deadline of April 19, 2025. It includes 20 programming tasks such as temperature conversion, variable swapping, leap year checking, and more. Each task aims to enhance the student's coding skills in Python.

Uploaded by

tanikakumawat1
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/ 2

Assignment-1

SEC : Programming using Python


Submission deadline: 19/04/2025
1. Write a program to convert temperature from Celsius to Fahrenheit and
vice versa.
2. Write a script to swap two variables without using a third variable.
3. Write a program to check whether a year entered by the user is a leap year
or not.
4. Write a program to print the multiplication table of a number using a for
loop.
5. Write a program that prints all even numbers from 1 to 100 using a while
loop.
6. Write a program that checks whether a given number is a palindrome or
not.
7. Write a program that takes a string from the user and prints it in reverse.
8. Write a program to count the number of vowels in a string.
9. Write a program that removes all punctuations from a user-input string.
10.Write a program that takes a list of integers and returns the largest and
smallest numbers.
11.Write a program to remove duplicates from a list without using set().
12.Write a program that merges two lists and sorts them in ascending order.
13.Write a function that takes a number and returns True if it's a prime, else
False.
14.Write a script that uses the math module to compute sine, cosine, and
tangent of an angle.
15.Write a program that counts the frequency of each word in a given
sentence.
16.Write a program to create a dictionary where the keys are numbers
between 1 and 10 and values are their squares.
17.Write a Python script to sort a dictionary by its values.
18.Write a program that counts the number of lines and words in a given file.
19.Write a program that simulates a simple calculator (add, subtract,
multiply, divide).
20.Write a program to implement a number guessing game where the user
has to guess a random number between 1 and 100.

You might also like