✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Next, write some code to make the program you've written (in previous parts) into a function.
The function should be named generate_sequence.
The function should not accept any parameters (user input read inside the function instead).
You should modify the code you wrote in part D to return a dictionary with appropriately named keys containing the information required upon program end (return should take place after the summary is printed).
You should write appropriate function header documentation for the function.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!