n, p = [int(x) for x in input().split()] I’m trying to do the first project from the data science course. I do not fully understand it, can someone help me with it?
4/6/2021 5:19:30 PM
Usman Jega5 Answers
New Answer[int(x) for x in input().split()] construction create from string example "2 3", list of integer values [2,3] and n, p = [2,3] equal n = 2, p = 3
[int(x) for x in input().split()] This generation equal GeneratedList = [] for x in input().split(): GeneratedList.append(int(x))
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message