-
Replied To a Post in Changing all tabs to spaces line by line
You might want to check module re -
Replied To a Post in What is the best replacement IDE for Visual Studio for linux/wine
I agree, Eric can do this. -
Replied To a Post in SOLVE IF YOU CAN
You might want to look at Python's deque object. -
Replied To a Post in Trying to write encoded byte to file, line by line
Using Python3 you are dealing with byte strings. So username has to be a byte string and **'\n'** has to be changed to **b'\n'** -
Replied To a Post in Creating a Caesar cipher using basic programming
Printing i should not give you a string ... mystr = "str is a function in Python and should not be used as a variable name" for i in range(len(mystr)): … -
Created A Timing Decorator (Python)
With the advent of Python33 the module time has received a high resolution timer/counter. Here we use time.perf_counter() in a decorator to conveniently time two test functions. -
Replied To a Post in Input function for Python2 and Python3
# another way ... # make string input work with Python2 or Python3 try: input = raw_input except: pass Now just use input() in your Python2 or Python3 code. -
Marked Solved Status for count capital letters in string
i write a code that coun t the number of upper case letter in a string there is a problem my code count space as capital letter code is below … -
Revoked Solved Status for pointersno
Using strictly pointer data type, write a modular C++ program that makes use of a single function called convert() to sort two integer numbers passed to it as arguments, exchanging … -
Replied To a Post in want code for this question urgent
Explore reversing of a string. -
Replied To a Post in Stuck with this
Organize your program this way ... input_data process_data output_results -
Marked Solved Status for Flower scream
What would happen if we cut a flower and it would scream like hell of the pain it feels? What would happen if we catch a fish on a line … -
Created Nature's Temper
What are the natural disasters that you have to learn to live with in your area? I just moved from the Las Vegas area where we had to live with … -
Marked Solved Status for List help part2!
cut_list We have to use a cut_list by writing a function called cutlist that "cuts" a list. Whwew a list and an index is given, and returns a copy of … -
Marked Solved Status for senior of HS
I've laughed, I've cried, I've torn out my hair, but yes! I have made finally to my senior year. I want to know what your senior year was like? -
Replied To a Post in Subconsciously influencing via photo-tweaking
This thread started out quite interesting. -
Replied To a Post in Science
If you teach science, let your students know what a scientist does. -
Marked Solved Status for Unexpectably switched from jazz to blues/hard rock of late 60s
What do you think on this fact? -
Replied To a Post in Unexpectably switched from jazz to blues/hard rock of late 60s
All that jazz! You obviously wanted something else in your life. -
Marked Solved Status for Percentage of loss
A seller sale a thing by 10% loss on his selling price, how % loss on his purchase price? -
Replied To a Post in Food and Country
The strangest thing I have ever been to was an Italian Oktoberfest. -
Marked Solved Status for which Language to to take seriously
Hi there, I just started to study software developmnet, something we call over "Ausbildung" which i think is called apprentice.man have learn programming in Java,C++, C# sqldatabase. my question is … -
Replied To a Post in Email undelivery
"Men won't read any email from a woman that's over 200 words long." ... Douglas Coupland -
Replied To a Post in Jokes
"Honey, I can't come to bed now, someone on the internet is wrong!" -
Replied To a Post in which Language to to take seriously
To me C was the eye opener. -
Replied To a Post in Memorable Quotations
“So comes snow after fire, and even dragons have their endings.” ― J.R.R. Tolkien, The Hobbit -
Replied To a Post in Ancient Dragon
Sad news indeed, rest in peace Melvin! Looking at his age, I should rename myself the "More Ancient Dragon" -
Replied To a Post in List help part2!
Much more cumbersome, but an option is to use reverse, pop then extend ... mylist = [0,1,2,3,4,5,6,7,8,9] ix = 3 t1 = [] revlist = list(reversed(mylist)) for k in range(ix+1): … -
Marked Solved Status for Syntax Error
What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print … -
Marked Solved Status for Reading binary files
I want to use Python to make something similar to the fc command found in MS-DOS and Windows. How would I handle opening 2+ files and reading them a byte … -
Replied To a Post in Simple Newbie Question
Python has an easy syntax, the trick is to get to know and use its many modules. A number of these modules are already written in higher speed C. Concentrate … -
Marked Solved Status for how to deselect a radioutton with a function in tkinter
hi, pls i have written a set of codes for a program and i want to deselect the radiobutton and also clear the contents of the entry widgets,the entry widgets … -
Marked Solved Status for Starting wxPython (GUI code)
The idea of this thread is to help the beginning wxPython GUI programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your … -
Marked Solved Status for Syntax Error
What's wrong with: def project_to_distance(point_x, point_y, distance): dist_to_origin = math.square_root(point_x ** 2 + point_y ** 2) scale = distance / dist_to_origin temp1= point_x * scale temp2= point_y * scale print … -
Replied To a Post in Debugging large projects in python
I assume all your modules have been properly stressed and tested using Python's unittest module. There was quite a nice article in Dr.Dobb's ... http://www.drdobbs.com/testing/unit-testing-with-python/240165163 -
Replied To a Post in List Help!
Another option, insert one element at a time. Do it in reverse order if you want to keep the insert position constant ... mylist1 = [1,2,3] mylist2 = ['a','b','c'] for … -
Replied To a Post in how to deselect a radioutton with a function in tkinter
You can also just select another radio button. It will deselect the others. -
Marked Solved Status for start with python
well .. i found out that python is easy language prog. for beginner like me .. but at 1rst am looking for some advices from proff. programers and i found … -
Marked Solved Status for Tommy Ramone, last surviving member of the Ramones passed
Although saddened by the passing of more of the stars of my youth I wonder if, at the funeral, they played the parody : When-a, When-a, When-a, it's my turn … -
Marked Solved Status for 4th dimension
My math professor in the past explained it this way: Consider yourself a 2D creature(some sort of pancake). If placed in a circle, you can't escape in a 2D world. … -
Marked Solved Status for Star Wars: Episode 7
Since my childhood, I've anticipated nothing more than an addition to the StarWars saga, and episode VII is a dream come true!! https://www.youtube.com/watch?v=z7CtvaartRY https://www.youtube.com/watch?v=Snph22qSUMU What are our comments/thoughts on the … -
Marked Solved Status for Convert string to binary
Hi!, i need to convert the string of a function in binary. In this case, i need to convert the return of the function swap() into binary to compare it … -
Marked Solved Status for examples of if statement in python
give a grammar and example of if statement for each of the following languages: a)perl, b)python -
Marked Solved Status for How do you round numbers in Python?
For class, I had to write a simple program that would calculate the surface area and volume of a torus. I did that, but my answers are long decimal numbers. … -
Marked Solved Status for Installing wxPython Phoenix
I downloaded daily build and did python3 setup.py build and then python3 setup.py install So far so good! I tried import wx and no errors I tried to run the … -
Replied To a Post in IDE
You can also consider the IPython Notebook an IDE, simply run file IPython Notebook.exe from your WinPython folder. An interesting approach to computing. -
Replied To a Post in How do you round numbers in Python?
Another way ... # round floats x = 355/113.0 print(x) print(round(x, 2)) -
Replied To a Post in Convert string to binary
You can also check https://pypi.python.org/pypi/bitarray/ -
Replied To a Post in iPython Notebook
The more recent WinPython dowloads are now at ... http://sourceforge.net/projects/stonebig.u/files/Winpython_2.7/ http://sourceforge.net/projects/stonebig.u/files/Winpython_3.3/ http://sourceforge.net/projects/stonebig.u/files/Winpython_3.4/ Whatever you download has a file named IPython Notebook.exe that runs the notebook on your default browser. -
Replied To a Post in There is an elephant on the loo!
Over 1200 different types of sausages are made in Germany. Not much of the slaughtered animal is wasted.
The End.