Print the list made up of 3 elements:
dif → 20, 2,3
if I print only the first element
dif[1]
I have error
Print the list made up of 3 elements:
dif → 20, 2,3
if I print only the first element
dif[1]
I have error
The issue here is that sets are unordered - therefore you can’t index them. You need to convert your set to a list first.
list(dif)[1]
Thanks for the help
I understand
Thanks for the example… it’s good now
I understand