Advertisement
Hugo_2000

2. loops

Jun 27th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. # creates a flag of a given size
  2. size = int(input("Insert the size of your flag (1-15): "));
  3. hieght = int(input("Insert the hieght of your flag (1-20): "));
  4.  
  5. # create flag
  6. count = 0;
  7. while count < size:
  8.     print("#"*size*3);
  9.     count = count + 1;
  10.  
  11. # makes flag pole
  12. count = 0;
  13. while count < hieght:
  14.     print("#");
  15.     count = count + 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement