Python Practice Questions
Python Practice Questions
5. Take the user's name and greet them with "Hello, <name>!"
7. Convert seconds into minutes and seconds (e.g., 90 seconds -> 1 minute 30 seconds).
10. Take a float number and show its square root using exponentiation (** 0.5).
- 90+: A
- 80-89: B
- 70-79: C
- Else: Fail
25. Write a function that returns the square and cube of a number.
30. Write a program that asks for age and checks if the user is eligible to vote (age >= 18).