Skip to content

Instantly share code, notes, and snippets.

@nattybear
Created March 23, 2017 02:08
Show Gist options
  • Select an option

  • Save nattybear/5ec5bd98fca20237189aa2f199263e12 to your computer and use it in GitHub Desktop.

Select an option

Save nattybear/5ec5bd98fca20237189aa2f199263e12 to your computer and use it in GitHub Desktop.
cnt1 = 1
cnt2 = 0
while cnt1 < 6:
while cnt2 < cnt1:
print('o' * cnt2, end='')
cnt2 = cnt2 + 1
print('*')
cnt1 = cnt1 + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment