r/PythonLearning • • Aug 18 '25

Day 2 - made this

Post image

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

44 comments sorted by

View all comments

11

u/No_Statistician_6654 Aug 18 '25

This is a great start. One question to ask yourself: what happens if a user types Rectangle, or triangle, or CiRcLE, or “ circle” <- quotes to show the space.

Would these be invalid shapes?

String trim and upper or lower are good things to look into when dealing with user input usually. There are cases where it isn’t, but you can discover that along the way.

1

u/[deleted] Aug 18 '25

Validating input from a non existing user on day 2 of writing code is crazy.

2

u/LaZboy9876 Aug 18 '25

hArd disssssagreeee

0

u/[deleted] Aug 18 '25

Why