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