\
  The most prestigious law school admissions discussion board in the world.
BackRefresh Options Favorite

Best python learning resource on the internet, by FAR

...
.,.,...,.,.,,,.,.,,,.,..,..
  07/14/17
That was very helpful ty. I take it "map" is ju...
,.,...,..,.,.,;:,.:,.,.,::,..,..,:,.,.:.:.,:.::,.
  07/14/17
...
.,.,...,.,.,,,.,.,,,.,..,..
  07/14/17
1. names = ["Alice", "Bob", "Carol...
<> ___ <>
  07/15/17
...
.,.,...,.,.,,,.,.,,,.,..,..
  07/15/17
1. ty 2. lol i didnt know that built in feature existed 3....
<> ___ <>
  07/15/17
...
.,.,...,.,.,,,.,.,,,.,..,..
  07/15/17
lol fma
<> ___ <>
  07/15/17


Poast new message in this thread



Reply Favorite

Date: July 14th, 2017 11:52 PM
Author: .,.,...,.,.,,,.,.,,,.,..,..




(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33777921)



Reply Favorite

Date: July 14th, 2017 11:55 PM
Author: ,.,...,..,.,.,;:,.:,.,.,::,..,..,:,.,.:.:.,:.::,.


That was very helpful ty.

I take it "map" is just a built in python function/method?

Haven't had a chance to finish reading but will do so soon

(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33777941)



Reply Favorite

Date: July 14th, 2017 11:56 PM
Author: .,.,...,.,.,,,.,.,,,.,..,..




(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33777949)



Reply Favorite

Date: July 15th, 2017 12:51 AM
Author: <> ___ <>

1.

names = ["Alice", "Bob", "Carol"]

def length_string(x):

return len(x)

result = map(length_string,names)

print(list(result))

2.

numbers = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]

def sum_nums(x):

return x[0]+x[1]+x[2]

result = map(sum_nums,numbers)

print(list(result))

3.num = [2, 3, 4, 5, 6, 7, 8, 9, 10]

def check_prime(x):

y = 2

if x <= 3:

return "true"

while x / y >= 2:

if x % y == 0:

return "false"

y = y + 1

return "true"

result = map(check_prime,num)

print(list(result))



(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33778329)



Reply Favorite

Date: July 15th, 2017 1:05 AM
Author: .,.,...,.,.,,,.,.,,,.,..,..




(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33778419)



Reply Favorite

Date: July 15th, 2017 1:09 AM
Author: <> ___ <>

1. ty

2. lol i didnt know that built in feature existed

3.a. i was going to google how to output boolean but was lazy lol

b. prime #s was one of the few euler type problems that i am good with just banging it out but u are 100% correct

tyty for the feedback. great lesson man.

(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33778441)



Reply Favorite

Date: July 15th, 2017 1:08 AM
Author: .,.,...,.,.,,,.,.,,,.,..,..




(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33778434)



Reply Favorite

Date: July 15th, 2017 1:09 AM
Author: <> ___ <>

lol fma

(http://www.autoadmit.com/thread.php?thread_id=3675368&forum_id=2#33778443)