2023-09-17 06:58:15 +00:00
|
|
|
# Copyright 2022, Rayyan Hodges, TAFE NSW
|
|
|
|
# rayyan.hodges@studytafensw.edu.au
|
|
|
|
|
2023-09-17 06:54:11 +00:00
|
|
|
#Getting user to choose type of wood
|
|
|
|
woodtype=int(input("Please select the type of wood you would like to use (1 for pine, 2 for oak): "))
|
|
|
|
|
|
|
|
#Defining answer
|
|
|
|
answer=woodtype
|
|
|
|
|
|
|
|
#Determining answer
|
|
|
|
if woodtype <2:
|
|
|
|
print("You have selected pine wood The pine table will cost you $100.")
|
|
|
|
|
|
|
|
if woodtype >1:
|
2023-09-17 06:58:15 +00:00
|
|
|
print("You have selected oak wood. The oak table will cost you $285.")
|