0% found this document useful (0 votes)
4 views1 page

Python Scripting and Programming Exercises

Uploaded by

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

Python Scripting and Programming Exercises

Uploaded by

Akhila Akhila
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

1st module

[Link] Scripting language among the list select all applicable i. C ii. Perl
iii. TCL IV. Java.....>>perl
[Link] is mostly Interpreted execution i. True ii. False......>true
[Link] is tightly structured i. True ii. False.....>>true
[Link] supports OOP implementations i. True ii. False........>>true
[Link] was created by i. Larry Wall ii. Guido Van Rossum III. Dennis Ritchie iv.
James Gosling.....>>guidovan rossum
[Link] programming needs programmer to know Java programming i. True ii.
False...>>false
[Link] programming is Open source language i. True ii. False............>>true
[Link] variable has to be setup for python environment for execution. i. True ii.
False.....>>false
...........................
2nd module

[Link] a program to print "hello world".


[Link] a program to find the area of a triangle using defined values for base and
height
[Link] a program to find display various primitive types of values using
appropriate print statement
[Link] a program to perform basic mathematical operation using appropriate type of
values
[Link] a program to swap two defined values
[Link] a program to find the given number is divisible by 5
[Link] a program to find square root of any given number
[Link] a program to convert Celsius To Fahrenheit
[Link] a list containing months in it and display month number and month name.
[Link] a list containing list of names and display the number of names
[Link] a list containing values in it and count any given number how many times
it is present.
[Link] a list containing months in it and sort it in reverse order.
[Link] a list of months and delete any your birth month from it
[Link] a two list with months and weekdays, Merge months with weekdays at the
end.
[Link] a dictionary containing months and appropriate days present in months and
display number of days of any given month.
............................
3rd module
Write a program to read values from user and compute the sum of two number
Write a program to read first name and last name and display full name
Write a program to print different type of values using formatted styles
...................
4th module

Write a program to check the person is eligible for marriage


Write a program to check the given year is an leap year
Write a program to sum of three given numbers. However, if any two values are equal
sum will be zero
Write a program to get the LCM and GCD of two positive integers
Write a program to check given number is Positive, Negative or Zero
Write a program to display first ten numbers in fibonacci series
Write a program to display primes between 25 to 75
Write a program to display the given number the number of times
Write a program to accept till 0 is given and sum all positive, sum all negative,
biggest and smallest of all and total numbers given
Write a program to reverse any given number
..............................

You might also like