Kevin Tiller

Generation

code to explanationSat, 22 Apr 2023

1st = [1,2,3,4,5] print(1st[-5,-3])

this code will return [1,2] as the first term is -5 and the second is -3 so it will print all values between the first and second term

Want to kickstart your project?Use the new AI Studio to create your code