Session Ready
Exercise

Variable assignment II

Variables are great to perform arithmetic operations with. In this assignment, we have defined a variable my_apples. You want to define another variable called my_oranges and add these two together.

my_apples + my_oranges
Instructions
100 XP
  • Create a variable called my_oranges and assign it the value of 6.
  • Add the variables my_apples and my_oranges and have R simply print the result.
  • Combine the variables my_apples and my_oranges into a new variable my_fruit, which is the total amount of fruits in your fruit basket.