Python Lab 1 - Practice Exercises
Practice exercises
- Ask the user for two numbers and print their sum, subtraction, multiplication, and division
- Ask the user for a sentence and:
- print it in upper case
- print how many times the letter
aappears (case-insensitive)
- Given a string, print its first half and second half using slicing(ask the user for the string)
- Check if the user input is only letters (no spaces) using
isalpha()