Skip to content

Instantly share code, notes, and snippets.

@mvallebr
Created November 16, 2016 10:46
Show Gist options
  • Select an option

  • Save mvallebr/26fcd7d0b2e58803ad93c6bc178b1d3e to your computer and use it in GitHub Desktop.

Select an option

Save mvallebr/26fcd7d0b2e58803ad93c6bc178b1d3e to your computer and use it in GitHub Desktop.
# Exemplo 1
n=int(input())
for i in range (1, n+1):
if i != n+1:
print(i, end=' ')
else:
print(i)
# Exemplo 2
n=int(input())
sep=''
for i in range (1, n+1):
print (sep, end='')
print (i, end='')
sep=' '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment