<commit_before># Remember you can test this code with
#   $ rake 2:1

# Write a program that reads in two integers typed on the keybaord
# and outputs their sum, difference, and product
#
# Standard input will be like "9 2\n" and will expect you to print
# "11\n7\n18\n" to standard output.

def sum_difference_product
  # your code goes here
  
end<commit_msg>adds somes notes to solution of 2:1<commit_after># Remember you can test this code with
#   $ rake 2:1

# Write a program that reads in two integers typed on the keybaord
# and outputs their sum, difference, and product
#
# Standard input will be like "9 2\n" and will expect you to print
# "11\n7\n18\n" to standard output.

# I couldn't figure this one out on my own. I sort of understand how the method def works,
# but couldn't figure out how to get the required output. I will return to this later.

# with the commented-out code below, I get the puts lines returned. Why?

# puts "give me 2 numbers, with a space between them"
#
# class String

  def sum_difference_product
    a , b = gets.split.map { |num| num.to_i }
    puts a + b
    puts a - b
    puts a * b
  end

# input = ""
# input.sum_difference_product

# end
{'fraction_non_alphanumeric': 0.07232968881412952, 'fraction_numerical': 0.017661900756938603, 'mean_word_length': 3.358974358974359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2218645', 'n_tokens_mistral': 387, 'n_tokens_neox': 370, 'n_words': 182}