if iq give you questions could you only give me the answers
Jump to turn (8)
- 1if iq give you questions could you only give me the answers
- 2@title Question 7 Write a function: userlist(n) This function returns a list of
- 3@title Question 8 Use the functions you wrote in question 8-10 to help you with
- 4@title Question 9 Use the functions you wrote in question 8-10 to help you with
- 5when writing multiple if elif and else statements should I count down of gor fro
- 6how would i write an if elsi and else chain to find uw the following Dalek, who
- 7#Dalek, who has at least 3 antennae and at most 4 eyes. #Sontaran, who has at mo
- 8could you not use lists
- User
if iq give you questions could you only give me the answers
- Assistant
Of course! Please go ahead with your questions, and I'll provide just the answers.
- User
@title Question 7
Write a function: user_list(n)
This function returns a list of n values as read in from the user
- Assistantpython
def user_list(n): return [input(f"Enter value {i+1}: ") for i in range(n)]