Design a program that takes a string as input from the user and prints its length.
Design a
7. Create a script that takes a string as input from the user and prints it reversed.
8. Create a Python script that asks the user to enter two strings and then prints their concatenation.
9. Create a Python program that asks the user for their age and prints out a message saying whether they
are a teenager (between 13 and 19 years old) or not.
10. Design a program that prompts the user to enter a positive integer and then prints whether it is a prime
number or not.
11. Design a program that calculates the factorial of a given number using a loop. Ensure the input number
is a positive integer.
12. Develop a program that prompts the user for the lengths of three sides of a triangle and prints whether
the triangle is equilateral, isosceles, or scalene.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images