Advertisement
melted_toaster

8.13

May 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. if __name__ == '__main__":
  2.    str_in = 'fill'
  3.    input_dic = {}
  4.    while str_in != 'quit':
  5.        user_in = input()
  6.        str_in, int_in = user_in.split()
  7.        input_dic[str_in] = int_in
  8.    del input_dic['quit']
  9.    for key, value in input_dic.items():
  10.        print('Eating %s %s a day keeps the doctor away.' % (value, key))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement