Doubt regarding pythonn 6 hour video in ur YouTube channel


You had given a homework in this video on ur YouTube channel.Can u pls say this image and tell is this crct or if not pls tell why is wrong

Hey @Avi,

Welcome to the form. Great first step!.

Two things I would recommend are

  1. make your code less ridged. eg. instead of ‘print("Price of a house is $1M.)’ → ‘print(f"Price of a house is ${price_of_house}.)’. This allows you to reuse the code and not manually make a change every time the price changes.

  2. The “=” needs space before and after. And no space after the ‘else’. This just keeps your code clean and uniform with other devs.

1 Like