By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

Why are some variables assigned as () only?

P: 1
For example if we get a variable called name
and we assign this variable as:
name = ()
What does this mean?
why is this parentheses open and then closed?
Feb 1 '17 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 618
You can always get the type of variable using type(). Take a look at this tutorial http://www.tutorialspoint.com/python/python_tuples.htm
Expand|Select|Wrap|Line Numbers
  1. name="abc"
  2. print type(name)
  3. name=()
  4. print type(name) 
Feb 4 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.