Posts
 
Reputation
Joined
Last Seen
Ranked #345
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
95% Quality Score
Upvotes Received
31
Posts with Upvotes
22
Upvoting Members
16
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
15 Commented Posts
~502.95K People Reached
Favorite Forums
Favorite Tags
Member Avatar for linux

Is it possible to write a full blown operating system (such as Linux) in Python? I mean writing a kernal, and then other applications that the kernal calls, without having Windows, Linux, UNIX, or Macintosh OS installed on your computer?

Member Avatar for Thulan
2
2K
Member Avatar for jrcagle

Hi all, The continuing quest to master Tkinter has led to this implementation of the dots and boxes game. The rules are well-known: each player gets to create a new line between two dots (single-click near the line you wish to create). If a player creates a box, he gets …

Member Avatar for Jiten_1
-1
6K
Member Avatar for mattyd

I am searching for the logical Python logical operator "or"; While C++ is: 1 || 4 (using pipes) I assume Python would simply be "or", as in: 1 or 4 Or something like this: if var1 == "image0.GIF" or "image1.GIF" or "image2.GIF": varValue = 10 Is this syntax for Python …

Member Avatar for rahul_64
0
53K
Member Avatar for RMartins
Member Avatar for pythonBasic
0
710
Member Avatar for pyguy25

Hello. I was wondering if anyone could help me with a caesar cipher program I am attempting to create. I was asked to write a caesar cipher encoder program. Ok. No problem. This is what i got: [code] import string def main(): print "This program will encode your messages using …

Member Avatar for FaZeSkwlSh00ter
0
7K
Member Avatar for sneekula

In the last couple of threads people have used the Python class, but really don't seem to know how to use them properly, or why to use them. Hence my question: "Why would you use a class in Python?" I though only Java forces you to use OOP.

Member Avatar for Vineetha_1
0
4K
Member Avatar for vegaseat

After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. Maybe an image viewer, a slide show, computer generated random or fractal art, a …

Member Avatar for vegaseat
20
18K
Member Avatar for vegaseat

For those of you who are inquisitive, here is a little Python program to approximate the value of pi to 77 digits. You can easily go further, just change the value n in range(n+1).

Member Avatar for sneekula
0
3K
Member Avatar for sneekula

I asked that in another thread, but it got lost: [QUOTE]When do you use root.quit() and when do you use root.destroy() to exit a Tkinter program?[/QUOTE] Also, can you intercept an exit when you use the little x in the title bar, just to affirm that you really want to …

Member Avatar for entropicII
0
44K
Member Avatar for katharnakh

Hi, How do I disable Copy/Cut/Paste operations on a textbox in Tkinter. I want to implement this in simple login form, where I found I can copy or paste or cut from textbox which is meant to accept PASSWORD. Can we do that? How? Thank you, Regards, kath.

Member Avatar for Gribouillis
0
2K
Member Avatar for ALJ

Hi, I'm having trouble trying to figure out a code that converts negative decimal numbers to binary, as well as specifying the number of bits. For example. convert -18 using 8 bits. This should come out as 10010010 doing it manually, I think. I'd appreciate the help, thanks.

Member Avatar for klickagent
0
9K
Member Avatar for jrcagle

Generators are essentially dynamic sequences, making their official debut in Python 2.5. That got me to thinking: can we make a circular list with them? Why yes, we can...

Member Avatar for vegaseat
2
184
Member Avatar for pinbustersrule

I've just started using python in my computer technology class. One thing I can't figure out is how to have python put the lists inside a string into alphabetical order. If anyone has any easy answer, it will be much appreciated. Also, my teacher told me he would give extra …

Member Avatar for noonecares
0
881
Member Avatar for chris99

Just wondering how the game would be put together, maybe even a step by step tutorial. I could use this to practice with the commands used without Tkinter or Pygame. This could be a good learning experience.

Member Avatar for Jacklittle01
0
1K
Member Avatar for aot

As a psychologist, it's useful to be able to time people's reactions in milliseconds. What kind of accuracy could I expect to get in this regard from Python? From what I've read so far, it doesn't look like I can hope to get precise enough timing to get reliable results, …

Member Avatar for BBTK
0
9K
Member Avatar for Eclipse77

Hi, I'm in need of some help in using functions for the hangman game. The professor doesn't understand how difficult it is for a first time programmer and just doesn't explain new concepts thoroughly. The game that I'm trying to code looks like this: Enter the secret word: LETTERS ------------------------------------------------------------ …

Member Avatar for woooee
0
3K
Member Avatar for Noliving

Hello everyone, I'm obviously having trouble with a program that wants me to create a house with just five mouse clicks. My program is simple create a house using only 5 mouse clicks. This problem is from the book Python Programming by John Zelle Its on page 162 This is …

Member Avatar for Karsam
-1
4K
Member Avatar for MarkWalker84

Hi, got a quick quickie... Im trying to send commands to a micrcontroller via a USB->serial converter. Im writing with wxPython on an XP machine it thats important. I have been using the win32 module along with USPP and so far so good, apart from one thing. As far as …

Member Avatar for mr_snarf
0
2K
Member Avatar for skix

Hello, I am fairly new to Python. I have only skimmed the surface in an introductory class I just finished in college. As my first program in Python, I am attempting to make a text editor. I am wondering if there is a universal command to bring up a Save …

Member Avatar for Notouch
0
11K
Member Avatar for sneekula

I need a function that returns True or False if an integer n is a prime. Any 'high speed' thoughts?

Member Avatar for wallars
0
1K
Member Avatar for MakingMoney

I've been asked to write a program that computes the nth Fibonacci number where n is a value input by the user. For example, if n = 6, then the result is 8. This is what I have so far: def main(): print "This program will compute nth Fibonacci" print …

Member Avatar for TrustyTony
0
2K
Member Avatar for AnjaliThukral

I have windows xp operating system at my home with python 2.5 and same operating system with python 2.4 at my computer lab. While working in python IDLE suddenly this error message --socket error:connection refused-- pops up and then python IDLE does not work at all.To make it work again …

Member Avatar for vegaseat
-1
1K
Member Avatar for MrKnowNothing

Hello, I am knew here and not sure how to ask but I guess I will ask it here and if this is not where it goes feel free to tell me where to post it.....THANKS I am trying to write a recursive function Python program that will ask the …

Member Avatar for Rehab A
0
300
Member Avatar for FreezeBlink

A classic of early text-based interfaces... Any way to do it in Python? I tried getch(), but it doesn't really work (for instance, if you hit Enter to confirm a menu selection, and then it goes to a "press any key" thing with getch(), getch() will pick up the Enter …

Member Avatar for richieking
0
13K
Member Avatar for night_guard

[code] class x(object): def __init__(self): self.x=1 class y(x): def __init__(self): super(y, self).__init__() [/code] what is it doing "super" function in here?

Member Avatar for Gribouillis
0
177
Member Avatar for gusbear

hi how you can help me i've been trying to connect a line from a point i click to a square that have been placed there previously but have no idea how to do it, could you help please??

Member Avatar for bboho
0
144
Member Avatar for Roadphantom13

Hello everyone. This is my first post so if something doesn't work, bear with me. I'm a beginner at python and tried to write a program that will calculate Average Word Length. I wrote what I thought should work but the final answer keeps coming out to an average of …

Member Avatar for forsakenedzero
0
5K
Member Avatar for jobs

When I execute the following sql,select id from people, inside python and print the result, I get this: ((11L,), (12L,), (13L,), (14L,), (15L,), (16L,), (17L,), (18L,), (19L,), (20L,)) Why does python print L beside the numbers. Just to indicate Long type?

Member Avatar for timogoosen
0
3K
Member Avatar for jrcagle

So I was thinking that there would be a simple Pythonic way to delete a directory structure. My app creates and deletes user accounts, which may contain any number of subdirectories and files. Hence, I wanted to do something like: [code] os.rmdir(user_directory) [/code] BUT...that throws an error when user_directory is …

Member Avatar for pythonista
0
136
Member Avatar for sneekula

I have a text I want to search for all it's upper case letters, then present these letters unique and sorted. I welcome any suggestions.

Member Avatar for twekberg
0
316