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

Best python learning resource on the internet, by FAR

...
Bat-shit-crazy Harsh Ratface Faggotry
  07/14/17
That was very helpful ty. I take it "map" is ju...
Shivering church building
  07/14/17
...
Bat-shit-crazy Harsh Ratface Faggotry
  07/14/17
1. names = ["Alice", "Bob", "Carol...
marvelous flesh hall haunted graveyard
  07/15/17
...
Bat-shit-crazy Harsh Ratface Faggotry
  07/15/17
1. ty 2. lol i didnt know that built in feature existed 3....
marvelous flesh hall haunted graveyard
  07/15/17
...
Bat-shit-crazy Harsh Ratface Faggotry
  07/15/17
lol fma
marvelous flesh hall haunted graveyard
  07/15/17


Poast new message in this thread



Reply Favorite

Date: July 14th, 2017 11:52 PM
Author: Bat-shit-crazy Harsh Ratface Faggotry



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



Reply Favorite

Date: July 14th, 2017 11:55 PM
Author: Shivering church building

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: Bat-shit-crazy Harsh Ratface Faggotry



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



Reply Favorite

Date: July 15th, 2017 12:51 AM
Author: marvelous flesh hall haunted graveyard

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: Bat-shit-crazy Harsh Ratface Faggotry



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



Reply Favorite

Date: July 15th, 2017 1:09 AM
Author: marvelous flesh hall haunted graveyard

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: Bat-shit-crazy Harsh Ratface Faggotry



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



Reply Favorite

Date: July 15th, 2017 1:09 AM
Author: marvelous flesh hall haunted graveyard

lol fma

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