Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 601 Bytes

string_exercises.md

File metadata and controls

21 lines (17 loc) · 601 Bytes

This Exercise is for Beginners.

  1. Write a Python program that includes
    single-line comments Explain what the program does in the comments?

  2. Create a program that declares variables of different types (integer, float, string) and prints their values and types?

  3. Write a program that: Declares a few integer variables. Prints their values. Prints the sum of two of the integers.

  4. Write a program that takes a string input from the user and prints the following:

    1. The length of the string
    2. The string in uppercase
    3. The string in lowercase
    4. The first character of the string