Question: Given the following string s, which of the statement creates the list my_number_list both of which are given below? s=4.7.310.41.6n my_number_list =[4,7,3,10,41,6] my_number_list= [i for
Given the following string s, which of the statement creates the list my_number_list both of which are given below? s="4.7.310.41.6n my_number_list =[4,7,3,10,41,6] my_number_list= [i for i in s.split(".")] my_number_list= [int(i) for s in s.split(":")] my_number_list= [int(i) for i in s.split(".")] my_number_list= [int(i) for i in s.split0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
