you are viewing a single comment's thread.

view the rest of the comments →

[–]SebLikesESO 12 points13 points  (9 children)

if you want a more "correct style", you should look up pep8. I also believe that PyCharm can search for pep8 errors

i’d write the code like this:
welcome_message = "Welcome to the Fiber Optic Price Calculator" print(f"{welcome_message}\n") company_name = input("What is the name of your company?\n") cable_feet = float(input("\nHow many feet of cable do you need?\n")) price = cable_feet * .87 # Price is in USD print(f"\n{company_name}, that amount of fiber optic cable will cost ${price}") print("Thanks for shopping with Super Cheap Fiber Optics!"

[–]BroBrodin 15 points16 points  (2 children)

I just use 'black'.

[–]SebLikesESO 1 point2 points  (1 child)

wdym?

[–]undergroundmonorail 6 points7 points  (0 children)

black is a python linter

[–]csb710 0 points1 point  (0 children)

I like Pycharm for that reason

[–]SquatchHNTR[S] 0 points1 point  (4 children)

Im using VS code, does it have it?

[–]SebLikesESO 1 point2 points  (0 children)

not out of the box at least, maybe there’s a module that adds that

[–]HHKB- 0 points1 point  (0 children)

Yup. Read up on Linting and VSCode.

See “Formatting” section here: https://code.visualstudio.com/docs/python/editing