Share your repls and programming experiences

← Back to all posts
what is your weight
vrishthika (1)

im a beginner 😅
please tell me any advice to make it better.

Wumi4 (531)

Looks good. Here are some of my advice:

  • Remove the parenthesis (()) around condition of the ifs, elifs, and the parenthesis around the value assigned for width and height. Python is not like Java or C, so parenthesis around the condition is unnecessary, and the same with the value assigned to width and height.
  • Put a space after symbols like ,, it is not necessary to do that but it will make your code more readable. With math and comparison operators (like + and >), you should put a space on the left and right of them.
  • Fix your grammar in the code.