Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #3K
~8K People Reached
Favorite Tags
Member Avatar for ThePythonNoob

Hi, I am trying to make a click counter. The prolem is the onClick part in button code. If i made it so it was "click();" and placed the var clicks into the function click then it would kind of work. But when I pass a variable into it.. it …

Member Avatar for ThePythonNoob
0
147
Member Avatar for ThePythonNoob

Hi, I just started javascript. I want to put a radio button into an array I have done this so far: var blocks = new Array("<input type="radio" name="" value="1">","2","3","4","5","6","7","8","9"); however this isn't working. I suspect that I need to change the 'mode' to html somehow? <html> <head></head> <script type="text/javascript"> // …

Member Avatar for AleMonteiro
0
219
Member Avatar for ThePythonNoob

I have two inherited classes in another class Class A(object): def printhello(self): self.message1="hello" Class B(object): def printbye(self): self.message2="bye" Class C(A,B): def __init__(self): super(C,self).printhello() def printboth(self): print(self.message1) print(self.message2) a = A() b = B() c = C() c.printboth() How do I super both A and B?, note this is just an …

Member Avatar for TrustyTony
0
2K
Member Avatar for alexandra.hoops.3

I have to write a program that asks the user how many pumpkin weights they have, and the reads that many pumpkin weights, printing each weight with two decimeal points and a comment and displays data about them to four decimal places. I need to find the average weight, maximum …

Member Avatar for ThePythonNoob
0
575
Member Avatar for ThePythonNoob

# Advanced game of Tic Tac Toe # Author: Bob # Version: TypeError #****************************** #import modules import random import mcommandline #****************************** class Human(object): def __init__(self): self.hposition = 0 self.hmove = ["X", self.hposition] self.question = "" def makemove(self): self.hmove[1] = input("1-9: ") def question(): question = input("Yes/No: ").lower() class Board(object,Human()): def …

Member Avatar for ThePythonNoob
0
257
Member Avatar for ThePythonNoob

Im interested to practice my python more in this area, for example I would like to do projects which would anyalyse a web page and look for a specific text or to send a post on to a site like twitter or facebook. I have no knowledge of this area, …

Member Avatar for Lardmeister
0
61
Member Avatar for ThePythonNoob

Hi I need some help with this code, at the moment I am just trying to get the commandline function to work. It should when I type a command like help or exit react to it, however I have to type the command 3 times for it to work which …

Member Avatar for ThePythonNoob
0
178
Member Avatar for ThePythonNoob

Hi, I have made a square that will move but there are some bugs in the movement. I can't find anything wrong with the logic which is why I need help ;) You have to press left and right to move the square. The problems with the movement are: 1: …

Member Avatar for ThePythonNoob
0
3K
Member Avatar for manticmadman

I am trying to check for a palindrome. I keep getting errors when reaching the first if statement. I feel it is because i returns as a letter and not the position number in the string. What am I missing? def palindrome(str): s=(str) sum=len(s) l=int(sum/2) for i in s[0:l]: if …

Member Avatar for TrustyTony
0
193
Member Avatar for tony75

Hello Friends Creating library object. I have a library.txt that contain 20 books and every line in library,txt contain author ,title and loan , my questions is how to create class and object for library script with python. 1. search at title 2. search at author 3. Borrow a book …

Member Avatar for tony75
0
662
Member Avatar for ThePythonNoob

Hey guys im need some help with this binary calculator, you enter the amount of bits or n in and then it calculates the number? In order for you to understand my problem more I will explain why I am making this, I asked my dad how big 128 bit …

Member Avatar for ThePythonNoob
0
241
Member Avatar for lundon

i searched for similar threads but couldnt find any. i write python scripts ..but i want to store them in someother folder eg /Desktop/... the scripts get executed from the unix terminal..however the python intepreter(initialised by typing python in terminal window )is not able to find the files. i changed …

Member Avatar for Trentacle
0
159
Member Avatar for ThePythonNoob

Hi guys I need some help with a tic tac toe game I made, the problem[s] is that it will not display that there is a tie and when you win it will run the computer move function and then it will say you have won. It is something to …

Member Avatar for ThePythonNoob
0
202
Member Avatar for ThePythonNoob

I have stated to make a program called virtual Tv, I have been having troubles with variabels and I need the variable: state to be able to be change and accessed outside the class and inside, but I think that state is a local variable at the moment. [CODE]import random …

Member Avatar for lrh9
0
206
Member Avatar for ThePythonNoob

Hi guys, thanks for all the help lately, but I require some more :o I need it that the user is able to choose what is on the controller, when I type in a valid option I test for it that it gets to that point but it does not …

Member Avatar for Narue
0
81
Member Avatar for ThePythonNoob

I made myself a project which is to make a virtual inventory but I have been having difficulty with pickling the variable: inventory. Could someone please insert the strip of code in order to save the variable in a seperate file and make it able to import it. [CODE]import pickle …

Member Avatar for woooee
0
75
Member Avatar for ThePythonNoob

(Python code 3.0) I have been trying to make it that when you the number it will loop around, I tried this: If guess==num: #this is randomly generated number ask for yes or no the playagain if answer==yes replay=1 play_guess==0 if replay=1 play=("yes") however this does not work, please could …

Member Avatar for richieking
0
119
Member Avatar for ThePythonNoob

It will carry on if the input is X but not O!! block of code concerning this matter [code] print("\nWould you like be X's or O's ? <O/X>:") human=["",""] while not (("X") or ("O")) in human[0]: human[0]=input("") [/code] whole code: [code] print("Welcome to the greatest intelletual challenge of all time: …

Member Avatar for ThePythonNoob
0
99
Member Avatar for ThePythonNoob

I cant figure out how to make a input lock that if the user types in a letter and not a number between 0 and 1000 that it will keep on asking for a number until it gets it. Thanks for any help.

Member Avatar for bumsfeld
0
154