I hereby claim:
- I am gracco on github.
- I am gracco (https://keybase.io/gracco) on keybase.
- I have a public key ASBzNtqos8MRnYU-DkfYpsT4SUW9QcKEhoPftJsqxsgRywo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/python3 | |
#Write a program (using functions!) that asks the user for a long string containing multiple words. Print back to the user the same string, | |
# except with the words in backwards order. For example, say I type the string: | |
# My name is Michele | |
#Then I would see the string: | |
# Michele is name My | |
def type_phrase(): |
#Write a program (function!) that takes a list and returns a new list that contains all the elements of the first list minus all the duplicates. | |
#Extras: | |
#Write two different functions to do this - one using a loop and constructing a list, and another using sets. | |
#Go back and do Exercise 5 using sets, and write the solution for that in a different function. | |
import random | |
a = random.sample(range(100), 40) |