ProblemStatementsFor StudentsPython

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

PROGRAMS

1. Write a Python program to print the following string in a specific format (see
the output). Go to the editor
\n\t

Twinkle, twinkle, little star,


How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are

2. Print below mentioned text in paragraph format "�Jump to Schema Definition� from
the context menu on the linked TestCase will show the TestSheet to which the
Template is linked in the working pane of the TestCase Design section"
3.Write a program to print addition of 2 numbers with proper comments.
4.Write a program to swap the values of variables.(Values can be integer or String)
5.Write a program to print average of 3 numbers.
6.Write a program to check if person is eligible for voting.
7.Print result of a student (Pass / Fail)
8. Print the grades of the student.(Consider 5 grades)
9.Write a progrm to calculate and display area of various basic shapes.(Write one
or many programs)
10.Write a program to check if number is negative, zero or positive.
11.find odd or even number
12.Write a Python program to test whether a passed letter is a vowel or not.
13.To check type of triangle equilateral, isosceles or scalene.
14 Input as month and display season
15 Write a program to find leap year by using if-else (year is divisible by 4 and
not by 100but could be by 400)
16 Write a program to calculate Salary and Sales Commission.(Make required
assumtions).

LOOP PROGRAMS

1.Find the factorial of given number.( use while loop)


2.Write a program which will find all such numbers which are divisible
by 7 but are not a multiple of 5,
between 2000 and 3200 (both included).
3.Write a Python program to count the number of even and odd numbers
from a series of numbers.
4.Write a Python program that prints all the numbers from 0 to 6
except 3 and 6.
5.Write a Python program which iterates the integers from 1 to 50.
For multiples of three print "Fizz" instead
of the number and for the multiples of five print "Buzz".
For numbers which are multiples of both three and five
print "FizzBuzz".
6.Write a program to calculate and display tables.
7.Find the sum of all the numbers in list.
(Hint numbers = [1,2,3,4,5,6,7,8]
8.To check if the number is prime or not.
9.To check if number is Armstrong number
eg 153 = 1*1*1 + 5*5*5 + 3*3*3 , 407
10. Display Fibonacci number series. (Hint 0,1,1,2,3,5....)
11. Write a Python program to construct the following pattern,
using a nested loop number. Go to the editor
Expected Output:

1
22
333
4444
55555
666666
7777777
88888888
999999999

12.Write a Python program to construct the following pattern, using a nested for
loop.

*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*

You might also like