Python Programs
Python Programs
1. "Write a program that computes the area of a circle. This program should
request a radius as input from the user. It should use the formula 3.14 * radius * 2 to
compute the area and then output this result suitably labeled"
2. Write a program that act as a calculator which can read input from the user and perform
operation such as addition, subtraction, multiplication and division
3. Write a python code to find the sum of digits for the given number
4. Write a python code to check the given number is prime or not using function
5. Write a python code to check the given number is armstrong number or not using
function
6. Write a python code to check the given number is palindrome or not using function
7. "Assume that the variable data refers to the string ""Python rules!"". Use a string
method to perform the following tasks:
a. Obtain a list of the words in the string.
b. Convert the string to uppercase.
c. Locate the position of the string ""rules"".
d. Replace the exclamation point with a question mark"
8. "Write a Python script to display the various Date Time formats.
a) Current date and time
b) Current year
c) Month of year
d) Week number of the year
e) Weekday of the week
f) Day of year
g) Day of the month
h) Day of week"
Module 3
Module 5
1. Write a pgm for creating a button widget and showing a msg when clicking the
button.
2. Write a program to create a simple GUI calculator using Tkinter