Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program excercise
#1
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.
Reply
#2
>>> peak = "/^\\"
>>> print(peak)
There's your start
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with the excercise alani 3 2,148 Apr-19-2020, 07:29 PM
Last Post: deanhystad
  excercise python list Kykoss 7 4,014 Feb-11-2018, 03:08 PM
Last Post: DeaD_EyE
  Homework-excercise gmit01 2 2,720 Dec-11-2017, 08:39 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020