New OpenDocument Text
New OpenDocument Text
OUTPUT
QUESTION 2
Write a program to input a number and print its cube
OUTPUT
QUESTION 3
Write a program to input two numbers and swap them,.
OUTPUT
QUESTION 4
Write a program to enter two integers and perform all arithmetic
operations on them
OUTPUT
QUESTION 5
The radius of a sphere is 7.5 metres, write a python script to
calculate its area and volume.
OUTPUT
QUESTION 6
Write a program to calculate simple interest.
OUTPUT
QUESTION 7
Write a program to accept a percentage of a student and display its
grade accordingly.
OUTPUT
QUESTION 8
Write a program to print fibonacci series.
OUTPUT
QUESTION 9
Write a program to display prime numbers up to a certain limit
OUTPUT
QUESTION 10
Write a program to accept a number and find out whether it is a
perfect number or not.
OUTPUT
QUESTION 11
Write a program to accept a number ,find and display whether it is a
Armstrong number or not.
OUTPUT
QUESTION 12
Write a program that count the number of alphabets ,digit ,uppercase
,lowercase letters ,spaces and symbols in a string entered.
OUTPUT
QUESTION 15
Write a program to print the following pattern.
A
AB
ABC
ABCD
ABCDE
OUTPUT
QUESTION 16
Write a program that inputs individual words ofyour school motto
andjoin them to make a string
OUTPUT
QUESTION 18
Write a program to read the list of n integers.Create two new
lists,one having all positive numbers and other having all negative
numbers from the given list.Print all threee lists
OUTPUT
QUESTION 19
Write a program to input a tuple and create two new tuples from it ,
one containing its every 3rd element in reverse order ,starting from
the last element and other containing every alternate element lying
between 3rd and 9th elements.
OUTPUT
QUESTION 20
Program to find that the input is a leap year or not.
OUTPUT