UrbanPro

Learn Python Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Is there any way to completely hide a variable in Python?

Asked by Last Modified  

2 Answers

Learn Python

Follow 2
Answer

Please enter your answer

Enhance your skill set with quick courses in 'python', 'javascript' & 'sap ui5 / fiori / abap'

What is a Variable: In Python, a variable is just a reference to a Python Object. There will always be a single instance of any particular Python object in the Python memory. Multiple variables will refer to the same object if defined or generated. Deletion of the reference is handled by the 'del' command....
read more

What is a Variable: In Python, a variable is just a reference to a Python Object. There will always be a single instance of any particular Python object in the Python memory. Multiple variables will refer to the same object if defined or generated. Deletion of the reference is handled by the 'del' command. The object itself is not removed from the mempry by the garbage collector if other references to it exist. 

Hiding a variable: Now, this could be in reference to private variables. Well, private variables are visible in Python objects. However, if you really want to hide a variable, then, a closure is the best option. Any other form of scope will also hide a variable.

read less
Comments

Senior Software Engineer

What do you mean by hiding ? can you please elaborate more about what you want to hide ?
Comments

Related Questions

What is the difference between Python 2.x and Python 3.x?
Python 2.x and Python 3.x have several key differences: 1. **Print Statement**: In Python 2, `print` is a statement (`print "Hello"`), while in Python 3, it's a function (`print("Hello")`).2. **Integer...
Kartheek
0 0
5
I want full details of the Python training, topics covered timing and duration. How much Fee for full course?
We conduct hands-on Python workshop at Kochi with personal attention to each participant. Classes with a batch of l1 or 2 students are also conducted based on the convenience of learner and tutor. Workshop...
Ravi
Where is a good place to learn Python?
leetcode, hackerrank, w3school
Srikanth

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Arithmetic operators
Operation Syntax Function Addition a + b add(a, b) Subtraction a - b sub(a, b) Multiplication a * b mul(a, b) Division a / b truediv(a, b) Concatenation seq1...

Python SubProcess
Question: As a Network Administrator, one of my trainee wants to know the below: He has certain number of Machines(IP’s). On daily basic he wants to know how many IP’s are reachable and...

Write your first Python program in 10 minutes
1. Download python from python official site search "python download" in google 2. Install in your machine 3. verify using : "python --version" command 4. Write first program using notepad create...

Code: Gantt Chart: Horizontal bar using matplotlib for tasks with Start Time and End Time
import pandas as pd from datetime import datetimeimport matplotlib.dates as datesimport matplotlib.pyplot as plt def gantt_chart(df_phase): # Now convert them to matplotlib's internal format... ...
R

Rishi B.

0 0
0

Python Puzzle: Find The Checksum To Ensure Flawless Data Transfer
Find below the puzzle: sampleInput='''5195 753 2468''' The first item's(5195) largest and smallest values are 9 and 1, and their difference is 8. The second item's(753) largest and smallest values...

Recommended Articles

Python is one of the most popular programming languages in the world. It is general-purpose, object oriented, high-level programming language used in a number of programming fields. Python is a great programming language to learn as it will introduce you to the world of programming. If you are from the technical background...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for Python Training classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Python Training Classes?

The best tutors for Python Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Python Training with the Best Tutors

The best Tutors for Python Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more