Skip to content

Instantly share code, notes, and snippets.

@saliksyed
Last active June 27, 2017 13:04
Show Gist options
  • Save saliksyed/69de1686ed3e7aa58f6209211f2f6793 to your computer and use it in GitHub Desktop.
Save saliksyed/69de1686ed3e7aa58f6209211f2f6793 to your computer and use it in GitHub Desktop.
# Python Starter Quiz
# Try your best to answer these questions. It’s just an assessment so I can get
# a feel for the level of Python skills in the class. No stress and no grade for this :)
# Question 1 :
# Print out "Coding is awesome :)"
# Question 2:
# Print the first 50 even numbers greater than 900
# Question 3:
# Print “The number you have inputted plus 5 is: <their number + 5>”.
# We’ve given you code to read in the number
mynumber = float(raw_input("What is the number?"))
# Question 4:
# print a list of 1000 1’s : [1,1,1,1,1,1] …
# Question 5:
# Make a function that given two lists returns the combined list.
# e.g : merge([1,2,3], [4,5,6]) … would give you [1,2,3,4,5,6]
# Question 6:
# Make a function that takes in dictionary and a value, if that value is in the dictionary
# it returns the keys corresponding to the value
# e.g : my_dict = { "A": 7, "B": 3 , "C": 7} … find(my_dict, 7) would yield ["A", "C"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment