Add together 100 and 150. Save this as a variable (choose your own name).
Subtract 50 from this variable. Save this as a new variable.
Print the value of the second variable:
In a single cell, multiply the second variable by the first one, and then divide it by 2:
Create a variable, called x, and set it to a numeric value:
Change the value of x to 500
Print the value of x:
Strings
Create a string (choose the name of the object yourself), containing the name of the student nearest to you.
Print this string:
Calculate how many characters are in this string:
Vectors
In one cell, create two vectors: first, a character vector containing the first names of the three students closest to you. Second, a numeric vector containing the years of birth of these three students.
Comparisons
Check if 100 multiplied by 5 is equal to 50 multiplied by 10:
Using the vector of student names you created above, check if any of the elements in the vector are equal to the string "Yann".