I am currently learning Python and I am struggling to display a specific amount of values from a list using for
.
Here is an example of what I want to do in Java:
for(int i=0; i<=5; i++){
System.out.println(list(i));
}
How can I write this code in python ?