We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
>>
[>>>
>>
>>
= RESTART: C:/Users/vikas/programs .py
Enter your 1st number:15
Enter your 2nd number:35
The sum and product of 15 and 35 is : 50 525
= RESTART: C:/Users/vikas/programs.py
Enter principle amount = 1000
Enter rate of interest = 5
Enter time in years = 2
Simple Interest is : 100
RESTART: C:/Users/vikas/programs-py
Enter the number=24
The given no is even
RESTART: C:/Users/vikas/progrems.py
Enter the number=25
The given no is odd
= RESTART: C:/Users/vikas/programs.py
Enter the year:2000
Given year is a leap year
Enter the year:2001
Given year is not a leap year>>
RESTART: C:/Users/vikas/programs.py
*
*
*
= RESTART: C:/Users/vikas/programs.py
Input a letter of the alphabet: a
a is a vowel.
>>>
RESTART: C:/User.
Input a letter of the alphabet: b
b is a consonant.
>>>I
= RESTART: C:/Users/vikas/programs.Py
Enter your nunber:2
Nurber is prine
pee
RESTART: C:/Users/vikas/programs.py
Enter your nunber:3
Nurber is prine
pee
RESTART: C:/Users/vikas/programs.py
Enter your number:
Not a prime
bee
= RESTART: ¢:/0eer9/vikao/progsans.py
Originai iist of favourite rruits: ("appie', ‘banana',
Upaaced List after adding pineapple: ["apple", "Denans', ‘orange’
Updated List after removing orange: (applet, ‘banana’,
vel
‘pineapeie')= RESTART: C:/Users/vikas/programs.py
Set: {20, 5, 8, 10, 15}
Maximum value in the set: 20
Minimum value in the set: 5
Input String: Hello, World!
Number of vowels in the string: 3
Dictionary with multiple inputs:
{'mame': '"John', 'age': 25, 'country': 'USA'}
Dictionary: {'a': 10, "b': 20, 'c': 30, 'd': 40}
re of all values in the dictionary: 100
>>>
C:/Users/vikas/programs.py
: 120
>>>
RESTART: C:/User:
enter your numbe:
factorial of given number is: 40320
a>] |