techie1991 26 Junior Poster in Training

you can check the limits for your system in limits.h
To get through your confusions, try to put those limits in binary form and you will yourself find that they are not clashing..

techie1991 26 Junior Poster in Training

If you are getting that error at cmd, then you have not installed python correctly, or most probably you haven't added python to your environment variables.
please look at: python docs

techie1991 26 Junior Poster in Training

def print_lol(movies):
for each in movies:
if isinstance(each,list):
print_lol(each)
else:
print(each)

>>> def print_lol(movies):
	for each in movies:
		if isinstance(each,list):
			print_lol(each)
		else:
                     print(each)

This worked for me.
I wanted to ask that if movies is not a list here ( you are checking via isinstance ), then what are you iterating through? (maybe you have strings in that list movies).

techie1991 26 Junior Poster in Training

Check in the error. It usually gives the line number to look around for mistakes. If that does not work then you can post a better overview of your program..

techie1991 26 Junior Poster in Training

Actually, the float type doesn't support modulus operator. That is why your program is giving an error. It is because the float numbers are stored in memory in two parts, mantissa and exponent.
Now, if you understand the concept of pointers than try to understand this.
When we call a function by value, we call it like

func(a,b)

. This passes to the function the values pointed to by these variables 'a' and 'b'.This creates a temporary image of these values in the memory somewhere for the function to work upon and thus the original variables are not affected at all.
But when we call a function by reference, we call it like

func(&a,&b)

. Where '&a' and '&b' refer to the address of the variables stored in the memory. So, we pass to the function, the address values of the same variables. This unlike previously, makes the function operate on the same variables using their addresses. (NO temporary variables are made).
Hope you understood.!;):)

techie1991 26 Junior Poster in Training

Maybe I used the wrong word "portability":$. Actually I wanted to say that if you want to create a project that is to be used by different coders following different languages, than you can always go for the json module. Just a piece of knowledge I had and I wanted to share. I didn't know about the speed problem. :-O
And if anyone wants to see the languages supported by json: json.org

techie1991 26 Junior Poster in Training

Use either a pickled dictionary as said by Beat_Slayer or if you want portability, use json module of python. (JavaScript Object Notation)

techie1991 26 Junior Poster in Training

This seems to be your homework,.. Help yourself, use the karnaugh maps,.. it would be really easy..
If you want to know about K-maps, check at: Wikipedia

techie1991 26 Junior Poster in Training

I believe, you don't need a forum, but some books to study from...
Hope the following links help:
thread1
python books

techie1991 26 Junior Poster in Training

I was trying to make a program that gives very accurate answers to problems. The accuracy I want is of like 20000 terms.
For eg. 10/3 is written as 3.33333333333333333...20,000 times.
So, is it possible in Python?
The code I tried to get square root of 2 is:

import math
print(math.sqrt(2))

which gives:
1.4142135623730951... which does not fulfill my need.
Also, please answer in reference to Python 3.0, if possible...

techie1991 26 Junior Poster in Training

I was trying to make a program that gives very accurate answers to problems. The accuracy I want is of like 20000 terms.
For eg. 10/3 is written as 3.33333333333333333...20,000 times.
So, is it possible in Python?
Also, please answer in reference to Python 3.0, if possible...

techie1991 26 Junior Poster in Training

Though not of use to any of above repliers and solution seekers...
But if someone wants to shift from the old turbo C++ (yes, the one with the blue screen) can use the borland C++. It has the same basic structure as the old turbo C++, has most of the shortcuts intact and the best part is that it is free. I can't tell for the mingw and other graphic supports as i haven't used any of them on it (guess, you will have to find that yourself as i haven't learned it yet).