Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = int(input("Enter length of stars line"))
- output = ""
- for i in range(0,input) :
- for j in range(0,input-i):
- output+='*'
- for j in range(0,i*2):
- output+=' '
- for j in range(0,input-i):
- output+='*'
- output+="\n"
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement