r/PythonLearning • u/Acceptable_Simple877 • Aug 18 '25
Day 2 - made this
Made this by myself (for the most part, made dumb errors here and there) after following Bro Codes Python guide for a bit.
177
Upvotes
r/PythonLearning • u/Acceptable_Simple877 • Aug 18 '25
Made this by myself (for the most part, made dumb errors here and there) after following Bro Codes Python guide for a bit.
1
u/psuedo_nombre Aug 22 '25
Great start! Next try to collapse down into some common functions. Like base height can be used for square rectangle triangle etc, and technically you could pass strings to a get measurements function like def get_measurements(dimension_list): Dimensions= [] For dimension in dimension_list: measurement = input(f"Enter the measurement for the {dimension}: ") dimensions.append(measurement) Return dimensions
Sorry for formatting errors but that is the next kind of step you'll want to take.
And obviously you'll want to check measurement before adding to list