Run
myrange = range(0, 5) # Convert range to list mylist = list(myrange) print(f'List : {mylist}') # Convert range to set myset = set(myrange) print(f'Set : {myset}') # Convert range to tuple mytuple = tuple(myrange) print(f'Tuple : {mytuple}')
Output