GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python3tutorials/examples/09_loops.py at master · aasmpro/python3tutorials Expand file tree/ Copy path09_loops.pyMore file actions 18 lines (18 loc) · 555 Bytes / Copy path09_loops.pyFile metadata and controls18 lines (18 loc) · 555 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 for letter in 'Python': print(letter, end='-') print() # end of 1st example list_data = ['P', 'y', 't', 'h', 'o', 'n'] for d in list_data: print(d, end='*') print() # end of 2nd example for index in range(len(list_data)): print(list_data[index], end='_') print() # end of 3rd example count, string = 0, 'Python' while count <= 5: print(string[count], end=' ') count += 1 print() # end of 4th example dict_data = {0: 'P', 1: 'y', 2: 't', 3: 'h', 4: 'o', 5: 'n'} for key, value in dict_data.items(): print(key, value, end=' | ') |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |