Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: ValueError: could not convert string to float:
Post: ValueError: could not convert string to float:

i tried to write a small program using tkinter and other small libraries, but i ran into a problem converting the string into a float in line 13, could anyone help? there might be some other inconsist...
RandomCoder General Coding Help 3 5,770 Jul-27-2020, 04:01 AM
    Thread: 'NavigableString' object has no attribute 'h2'
Post: RE: 'NavigableString' object has no attribute 'h2'

(May-19-2020, 07:07 PM)Larz60+ Wrote: I expected you to still get an error, I wanted to see the results of the print statementBut there isn't anything else that the program prints out to begin with,...
RandomCoder Web Scraping & Web Development 5 5,424 May-19-2020, 11:09 PM
    Thread: 'NavigableString' object has no attribute 'h2'
Post: RE: 'NavigableString' object has no attribute 'h2'

(May-19-2020, 01:41 AM)Larz60+ Wrote: The error is telling you that there is something wrong with navigation from article-->h2 wither there is another node or nodes between 'div' tag and h2 tag, ...
RandomCoder Web Scraping & Web Development 5 5,424 May-19-2020, 03:40 PM
    Thread: 'NavigableString' object has no attribute 'h2'
Post: 'NavigableString' object has no attribute 'h2'

Good Afternoon! I have been following a tutorial on beautiful soup by Corey Schafer, but I came across an error when writing the code, and I do not know how I can debug it, considering the code is th...
RandomCoder Web Scraping & Web Development 5 5,424 May-19-2020, 12:44 AM
    Thread: opencv on mac: Assertion Failed
Post: opencv on mac: Assertion Failed

I've been following tutorials on youtube for opencv in python, but i have nothing for output, the code is the same as in the tutorial, and python quits by itself, help? (i program on a macbook if tha...
RandomCoder General Coding Help 0 1,680 Feb-16-2020, 06:17 PM
    Thread: Raspberry pi to computer
Post: Raspberry pi to computer

Is it possible to connect a raspberry pi to a computer, so that if a certain function is triggered on the raspberry pi, i can output results on the computer?
RandomCoder General Coding Help 1 1,694 Jan-20-2020, 07:15 PM
    Thread: unsupported operand type(s) for %: 'list' and 'int'
Post: unsupported operand type(s) for %: 'list' and 'int...

a = [] k=1 for x in range(0,10): a.append(int(input())) for x in range(0,30): if (a%2==0): k=k*a print(k)need answer ASAP
RandomCoder General Coding Help 4 32,877 Nov-20-2018, 02:47 AM
    Thread: Attribute error
Post: Attribute error

This is what i did from tkinter import * import random import time root = Tk() class e(): def startofgame(): e.Name=str(name_entry1.get()) e.carname=str(name_entry2.get()) ...
RandomCoder General Coding Help 1 26,899 Jul-24-2018, 04:46 PM
    Thread: Pokemon in python (beta)
Post: RE: Pokemon in python (beta)

(Jun-12-2018, 01:26 PM)Nwb Wrote: Pretty impressive my dude! Keep it up, I'm sure you'll be able to make an awesome game-app. Maybe you can start working on graphics now and a pokemon spawn system. ...
RandomCoder Code sharing 2 2,608 Jun-13-2018, 09:02 PM
    Thread: Pokemon in python (beta)
Post: Pokemon in python (beta)

This is a program I made from an idea I had, I will improve the program throughout, any suggestions are appreciated **smile** , this is what I have for now. from tkinter import * root = Tk() import t...
RandomCoder Code sharing 2 2,608 Jun-11-2018, 01:01 AM
    Thread: Can Python do that
Post: RE: Can Python do that

Well, I did what @hello_its_me wanted, I really don't have to do more with that, i just helped @hello_its_me and that is it really.
RandomCoder General Coding Help 6 72,851 Jan-08-2018, 02:33 AM
    Thread: Can Python do that
Post: RE: Can Python do that

Um, you could still type on other programs while the python is still running, you do realize that, right?
RandomCoder General Coding Help 6 72,851 Jan-07-2018, 03:01 PM
    Thread: Invalid syntax on IF function
Post: RE: Invalid syntax on IF function

(Jan-07-2018, 02:44 AM)wavic Wrote: You miss a bracket in prev. line.Thanks. Just a silly mistake.
RandomCoder General Coding Help 3 3,169 Jan-07-2018, 02:05 PM
    Thread: Can Python do that
Post: RE: Can Python do that

Yes, this is the code I wrote, it displays the time left, but it only counts down with seconds, not like 1m 30s... 1m 29s, and so on. import time sec=0 sec = int(input("hello! To how many seconds wou...
RandomCoder General Coding Help 6 72,851 Jan-07-2018, 02:02 PM
    Thread: Invalid syntax on IF function
Post: Invalid syntax on IF function

guessnumber=0 import random Mystery = random.randint(0,9) while guessnumber==int(input("Guess a number between 0-9: ")): if guessnumber > Mystery: print('The number you input is not t...
RandomCoder General Coding Help 3 3,169 Jan-07-2018, 02:09 AM
    Thread: Guess Random Number Why i m not able to enter input
Post: RE: Guess Random Number Why i m not able to enter ...

you didn't indent correctly This is how I did it but I had a bit of problems with it guessnumber=0 import random Mystery = random.randint(0,9) while guessnumber==int(input("Guess a number between 0-...
RandomCoder General Coding Help 6 8,215 Jan-07-2018, 01:56 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020