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
-
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.
-
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