in Education by
Is it mandatory to include underscores in variables in Python? For example, can I put myVariable in place of my_variable? Select the correct answer from above options

1 Answer

0 votes
by
The underscore prefix is meant as a hint to another programmer that a variable or method starting with a single underscore is intended for internal use. This convention is defined in PEP 8. This isn’t enforced by Python. Python does not have strong distinctions between “private” and “public” variables like Java does. do follow me pls♡

Related questions

0 votes
    how can i create a power point presentation on the topic AI FOR KIDS. wHAT ARE THE TOPICS THAT I SHOULD INCLUDE Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    c) A computer system was designed to have a good latest processor and I/O devices, however the designer of the ... in support of your Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    I am the place where you create stories animation ,games etc in scratch Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    How to digits for a string in python? (short code) example: app77 should give a digit count of 2 Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    The value of the control variables can be decreased in the For …..Next loop with the help of the ___ statement in looping statement Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    What does the ‘holistic perspective’ of development include? Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Name the countries where East European revolutions took place in 1989-1990? Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    A struggle known as “Bolivia’s water war” took place in ....... city. (1) Cochabamba (2) Lapaz (3) Trinidad (4) Montero Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    A place were the British, Dutch and sach had thens-factories Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
0 votes
    A place were the British, Dutch and sach had thens-factories Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    B. State True or False: 1 Copying refers to placing data from one place to another. 2. Ctrl + Akey ... column the existing settings. Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    write a html program to display a menu card of Hotel debri with heading with atleast 3 veg and non veg ... checkboxes and place order Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    A place were the British, Dutch and sach had thens-factories Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    If A =1,B’=0, C=0 are the input of a NOR GATE what will be the out put Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
...