0% found this document useful (0 votes)
3 views8 pages

Python Assignment

The document outlines a Python assignment consisting of various programming tasks to be completed and submitted by March 1, 2025. It includes sample questions and instructions on how to approach solving them, as well as contact information for queries. Students are required to document their approach and send their completed work in PDF format to a specified email address.

Uploaded by

maanvi.tyagi18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views8 pages

Python Assignment

The document outlines a Python assignment consisting of various programming tasks to be completed and submitted by March 1, 2025. It includes sample questions and instructions on how to approach solving them, as well as contact information for queries. Students are required to document their approach and send their completed work in PDF format to a specified email address.

Uploaded by

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

PYTHON ASSIGNMENT

-NEXTIN.PY
Try to solve these questions-

 After solving these question, create pdf then send it to


[email protected].

 If you have any doubt leave that question and ask in class.

 After solving question, also mention your approach how you solve this
question.

 Deadline to submit – 1 march 2025.


DEMO QUESTION-

 SUPPOSE THIS IS QUESTION TRY TO CHECK IF NUMBER IS EVEN OR


ODD.
 Solution solution link

 Apporach –
we know that even number is divisible by 2.
Divisible means reminder is 0 and % operator gives us reminder and then
we can check if reminder is 0 then “even” else “odd”.
Try To Solve-

 Write a python program using while loop to print 10 natural numbers.

 Write a python program using while loop to print the multiplication table of 5 up to 10.

 Write a python program that takes an input n and calculates the sum of the first n
natural number using a while loop.

 Write a program to reverse a number using a while loop.

 Write a program to count the number of digits in a given number using a while loop
(eg- 12345 ouput will be number of digits – 5)
 Solve - program to reverse a number using a while loop.
Write a python

 Write a python program to check if given number is palindrome.

 Write a python program to find the factorial of a given number using a while loop.

 Write a python program to check if a given number is an Armstrong number. (suppose


number is 153 then for Armstrong 1^3 + 5^3 + 3^3=153 then Armstrong)
Solve

 Write a Python program to reverse a string.

 Write a python program to calculate the sum of digits of a number.

 Write a python program to find the largest digit in a given number.


(suppose enter a number :7642 , Output – Largest digit: 7)

 Create a tuple with 5 numbers and find the maximum value


Solve-

 Write a program to check if an element exists in a tuple or not.

 Write a program to print key in the dictionary.

 Write a program to remove the duplicates from a list using a set.

 Write a program to find the common elements between two sets.


!!!!!!!

 For any query and suggestion mail us at – [email protected]

 Follow us on linkedin for more question-Click here

 Follow on Instagram - Click here

You might also like