Program excercise - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Program excercise (/thread-8603.html) |
Program excercise - SushiRolz - Feb-28-2018 Write a program that draws a house by printing characters to the screen. This program should have main, PrintGround, PrintRoof, and PrintWall functions. All functions are void with no parameter functions. The main function should call the three Print functions to draw a house PrintGround function prints a bar of tilde(~). PrintRoof prints an upper triangle that forms the roof of a house PrintWall prints two vertical bar that forms walls of a house.' should look like this: /^\ /---\ /-----\ /-------\ /---------\ # # # # # # # # ~~~~~~~~~~~~~~~~~~~~ Home sweet home. it should look like a house I'm stuck on trying to start it. Any tips, help, or answers would be greatly appreciated. RE: Program excercise - Larz60+ - Feb-28-2018 >>> peak = "/^\\" >>> print(peak) There's your start |