- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- Ubuntu 10.10 (Maverick Meerkat)
13 Posted Topics
What does xrange do in python?? And how do I implement a similar function in Python3?? | |
The [URL="http://www.python.org/"]official Python website[/URL] is now conducting a poll to find what Python package users want most to get ported to Python 3. Top on the list is django followed by wxPython and numpy. See the full results at- [url]http://www.python.org/3kpoll[/url]. Also, do vote(or nominate) the Python package that you want … | |
Hello, I got stuck trying to solve the following problem in Python. I understand that I somehow need to implement Dijkstra's algorithm to solve this problem, but how I've no idea. [B]Inside a room, there is a monster with N heads, and a human (with 1 head). The human has … | |
I'm just thinking of learning basic 3d modelling(just as a hobby) and wanted to know whether you guys recommend 3ds max or Blender. I do have 3ds max, but I mostly use Ubuntu rather than Vista. | |
Hi, I started learning Python 3 around a month ago and I think, I am beginning to get the hang of it. However, I just recently realized that most of the modules I would like to use(wxPython, django,etc) aren't yet ported to Python. SO now, I'm really confused whether I … | |
Re: Try replacing the code in line 26 with: [CODE=python]if word not in stopWordsList: words.get(word, 0) + 1[/CODE] | |
I wrote the following function in Python3 for finding the largest product of numbers along the diagonal(top-left to right-bottom). [CODE=python] def GreatestOnDiagonal(data): '''Returns greatest product possible by multiplying 4 numbers in the diagonal ''' grtProduct=1 for item in data: for n in item: product=1 for r in range(0,4): try: d=data.index(item)+r … | |
Since Django is not yet compatible with Python 3, what are other good web application development frameworks compatible with Python3? | |
I tried to generate permutations by using itertools module but its not working. [CODE=python] >>>print(permutations([1,2,3],3)) <itertools.permutations object at 0xa917c5c> [/CODE] Why is it so? and how do I make it work properly? | |
How do I sort a list in Python alphabetically? The code that is used for Python 2 doesn't seem to work: [CODE=python] mylist.sort() [/CODE] Since the file I'm working with has all text in the same case, case doesn't matter here. Please help. Thanks. | |
Since I am a Python beginner, I was thinking about studying,and possibly working on some real-world software written in Python. So could you guys suggest some simple open source projects that I could use to study and, if possible, get involved with in development. Thanks. | |
Re: Hi, I was trying to do the same thing but with strings. Here is my code: [CODE=python] lis=['a','a','a','b','b','d','d','f'] for char in lis: print(char,":",lis.count(char)) [/CODE] The problem I'm facing is that the code above outputs the frequency for all duplicate items too. So, it shows a:3 a:3 a:3 ..and so on. … | |
Hi, How do I find the frequency of each item in a list in Python? For example if there are five 'apple', two 'banana', and so on in the list, how do I write a program so that it displays the item as well as the number of times it … |
The End.