Course: Web Application Development Using Python (ICTC5)
Instructor: George Khoury
Revision: 1
Last updated: 5-07-2020
Submission Date: No submission required.
- Write a program which calculates the area of a circle given the radius.
- Write a program which prints to the screen the extension of any given file name.
Sample input: "Airplane.java"
Sample output: "java"
- Write a program which prints two versions of a String. One in all uppercase characters, and the second all in lowercase.
- Write a program which counts the number of occurrences of a given character in a string.
- Write a program which parses a string value to an int.
Sample input: "23456"
Sample output: 23456
- Write a program which converts all units of time into seconds.
Sample input: "3 days, 14 hours, 27 minutes, 33 seconds.
Sample output: 311253 seconds
- Write a program which prints the output of a variable name.
Sample input: name = "Python"
Sample output: "Hello there, Python!"
- Given a string input Count all lower case, upper case, digits, and special symbols.
Sample input: password = P@$$w0rd
Sample output: Your password contains 4 chars. 1 digits. 3 symbols.
You can find suggested solutions to the problems above here.