- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hey guys im doing the NCSS python challenge and I need help!! ok so here's my current problems (p.s. my teach cant even help) PROBLEM 1 ************************ [code]# This is a Python file def fibonacci(n): return (n <= 1) and 1 or fibonacci(n-1) + fibonacci(n-2) def decrypt(s): def helper(s): return … |
|
Re:
Hello, Yet another silly question from yours truly. I need to add escape characters to " and ', so that "monkey's cool" becomes \"monkey's cool\". My primitive solution to the problem is as follows: [CODE]str1=raw_input("String:") str1=str1.replace("'", "\\'") str1=str1.replace("\"", "\\\"")[/CODE] But I bet there is a more efficient and elegant solution … |
|
|
Re:
hi again sorry i havent been only lately but i have this problem with some code for a digital phonebook. the code is this:[ICODE]p = float(raw_input("do you want to add a new person? (1 = yes, 0 = no)")) v = float(raw_input ("do you want to see the phonebook now? … |
Re:
does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): … |
|
Re:
I am new at Java. I have used Microsoft's Visual J++ but I have heard that it doesnot follow the java standard. Can you please give me the name of a good standard compiler that will work fine in windows XP. |