Python Forum
Is it possible to multi line a Basic Function Construct line statement? If so how?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to multi line a Basic Function Construct line statement? If so how?
#6
(May-23-2024, 01:48 AM)BrandonKastning Wrote: def basic_function_construct_for_loc_gov_collection_maximum_page_count_using_two_fstring_variables(
loc_gov_collection_name_item_count,
loc_gov_collection_name_item_results_maximum_display_count,
):
Functions and variable names should be sufficiently explicit but not excessively detailed. I think the problem is similar to the choices you make in natural language. Would you say «Joe Biden drank a tea» or «Joseph Robinette Biden Jr 46th president of the United States, member of the Democratic Party and former vice-president drank a tea» ? If you had 10 sentences involving Joe Biden, you would certainly not choose the latter. The same good sense applies to keep programs readable.

When this naming issue is solved, one good advice: use Black to format automatically your Python code. It will save you a lot of work.

(May-23-2024, 01:56 AM)BrandonKastning Wrote: Godspeed and stay True to Jesus & Country! Remember: YOU matter; YOUR will Matters; Justice for YOU matters! No matter what anyone says. God gives us three great gifts! 1) Life, 2) Free Will 3) HIS Only Begotten Son, JESUS! What we do with these is OUR gift to Him.
Not sure superstition helps... Bonk
Larz60+ likes this post
« We can solve any problem by introducing an extra level of indirection »
Reply


Messages In This Thread
RE: Is it possible to multi line a Basic Function Construct line statement? If so how? - by Gribouillis - May-23-2024, 06:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Βad Input on line 12 Azdaghost 5 1,434 Apr-19-2025, 10:22 PM
Last Post: Azdaghost
Question [SOLVED] [Beautiful Soup] Move line to top in HTML head? Winfried 0 373 Apr-13-2025, 05:50 AM
Last Post: Winfried
  Insert command line in script lif 4 1,251 Mar-24-2025, 10:30 PM
Last Post: lif
  Entry field random pull from list, each return own line Bear1981 6 948 Feb-25-2025, 06:09 AM
Last Post: Pedroski55
  How to revert back to a previous line from user input Sharkenn64u 2 1,198 Dec-28-2024, 08:02 AM
Last Post: Pedroski55
  Pandas - error when running Pycharm, but works on cmd line zxcv101 2 2,590 Sep-09-2024, 08:03 AM
Last Post: pinkang
  Simplest way to run external command line app with parameters? Winfried 2 1,465 Aug-19-2024, 03:11 PM
Last Post: snippsat
  Printing the code line number arbiel 6 1,803 Jun-30-2024, 08:01 AM
Last Post: arbiel
  How to add multi-line comment section? Winfried 2 1,472 Jun-04-2024, 07:24 AM
Last Post: Gribouillis
  I can't for the life of me get this basic If statement code to work CandleType1a 8 2,508 May-21-2024, 03:58 PM
Last Post: CandleType1a

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020