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

Best python learning resource on the internet, by FAR

...
Sexy vibrant kitty cat sweet tailpipe
  07/14/17
That was very helpful ty. I take it "map" is ju...
Milky messiness rigor
  07/14/17
...
Sexy vibrant kitty cat sweet tailpipe
  07/14/17
1. names = ["Alice", "Bob", "Carol...
Racy National
  07/15/17
...
Sexy vibrant kitty cat sweet tailpipe
  07/15/17
1. ty 2. lol i didnt know that built in feature existed 3....
Racy National
  07/15/17
...
Sexy vibrant kitty cat sweet tailpipe
  07/15/17
lol fma
Racy National
  07/15/17


Poast new message in this thread



Reply Favorite

Date: July 14th, 2017 11:52 PM
Author: Sexy vibrant kitty cat sweet tailpipe



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



Reply Favorite

Date: July 14th, 2017 11:55 PM
Author: Milky messiness rigor

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: Sexy vibrant kitty cat sweet tailpipe



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



Reply Favorite

Date: July 15th, 2017 12:51 AM
Author: Racy National

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: Sexy vibrant kitty cat sweet tailpipe



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



Reply Favorite

Date: July 15th, 2017 1:09 AM
Author: Racy National

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: Sexy vibrant kitty cat sweet tailpipe



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



Reply Favorite

Date: July 15th, 2017 1:09 AM
Author: Racy National

lol fma

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