R_Code-8.r (492B)
1 # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 2 # Repo: https://github.com/notamitgamer/bsc 3 # License: MIT 4 5 # Create a list named list1 containing the number 24, 6 # the string "Sabby", the float 5.4, and the string "Nepal". 7 # Then, write the code using the append() function to add the number 3.14 to the very end of this list. 8 9 list1 <- list(24L, "Sabby", 5.4, "Nepal") 10 print("Before update") 11 print(list1) 12 print("After Update") 13 list1 <- append(list1, 3.14) 14 print(list1)