GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python3tutorials/examples/09_loops.py at master · aasmpro/python3tutorials

Expand file tree

/

09_loops.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
18 lines (18 loc) · 555 Bytes
/

09_loops.py

Copy path

File metadata and controls

18 lines (18 loc) · 555 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.