Asked by Rambo

What is the index number of "tacos" in this list:*
foods = ["tacos", "burritos", "nachos"]
1
0
3
2

Answers

Answered by Rambo
What is the index number of "steve" in this list:*
users = ["daniel", "jim", "steve"]
2
3
4
0
Answered by Rambo
Write Python program which checks if a user is in the correct height range to ride a roller coaster. You should:*
- Create a function called `check_height()`
- It should take one parameter,`height`, which is a float
- In the `check_height()` function:
- If the `height` is less than 5.2 or more than 7.5, display: "You cannot ride the roller coaster".
- If the`height` is between 5.2 and 7.5 (inclusive), display: "You can ride the roller coaster".
- In the main area of your program:
- Prompt the user for their height and store their response in a variable.
- Don't forget to convert to the correct data type!
- Use the `check_height()` function with the user-provided height to see if they can ride the roller coaster.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions