Guest User

Untitled

a guest
Jan 19th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def prostokat( w, h ):
  2. return "\n".join(
  3. [ w * "x" ]
  4. + (h-2) * [ "x" + ( " " * (w-2) ) + "x" ]
  5. + [ w * "x" ]
  6. )
  7.  
  8. if __name__ == "__main__":
  9. print( prostokat( 15, 10 ) )
Advertisement
Add Comment
Please, Sign In to add comment