You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main.py file should include an external file above the from src import default_services as ds line.
fromsrcimportbasic_servicesasbs
There should be a src/basic_services.py file with the following content
defcsv_to_list(csv_string):
""" Converts a string with comma-separated integer values to a Python list of integers. Receives -------- csv_string : string Comma-separated integer values (stored as strings). Returns ------- integer_list : list List of integer values. """string_list=csv_string.split(',')
integer_list=list(map(int, string_list))
returninteger_list
There should be a test/basic_test.py file with the following content.
As a user
I need to input a list of integers
So that it can be manipulated.
Assumptions:
main.py
file with the following content below the/answer
block.main.py
file should include an external file above thefrom src import default_services as ds
line.src/basic_services.py
file with the following contenttest/basic_test.py
file with the following content.Acceptance criteria:
The text was updated successfully, but these errors were encountered: