Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user_input = int(input("you pick a number an I will tell you what are the numbers before him "))
- # user_input = 5
- def input_number_output_list(number):
- i = 0
- out_put_list = []
- while i < number:
- out_put_list.append(i)
- i += 1
- Sentence = f"this is a list of the numbers before the one you pick {out_put_list}"
- return Sentence
- print(input_number_output_list(user_input))
Advertisement
Add Comment
Please, Sign In to add comment