예제 #1
0
from review_lib import get_next_review, submit_review

review = get_next_review()

if review is not None:
    submit_review(review)
예제 #2
0
  drop_needle(album)

next_album = "Blondie / Parallel Lines"

play_record(next_album)

## None: It's Nothing!
# None is falsy, meaning that it evaluates to False in an if statement

from review_lib import get_next_review, submit_review

# define review here!
review = get_next_review()

if review is not None: # checks if review contains a value that isn’t None
  submit_review(review) # submits it by calling submit_review()

# Default Return
# store the result of this print() statement in the variable prints_return
prints_return =  print("What does this print function return?")

# print out the value of prints_return
print(prints_return)

# call sort_this_list.sort() and save that in list_sort_return
sort_this_list = [14, 631, 4, 51358, 50000000]

list_sort_return = sort_this_list.sort()

# print out the value of list_sort_return
print(list_sort_return)