Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Store Screenshot Selenium + MongoDB
Post: RE: Store Screenshot Selenium + MongoDB

I see some options that don't involve MongoDB, 1) Sqlite3 which is much easier and quicker, as it stores all info in 1 file. 2) Just a file on your disk, easier, better, quicker.
BitPythoner Web Scraping & Web Development 9 3,649 Aug-16-2020, 08:30 PM
    Thread: List index out of range error when attempting to make a basic shift code
Post: RE: List index out of range error when attempting ...

if z is in the message, then the program will attempt to shift z to the next available value in the list, this does not exist. Maybe add an if statement (psuedocode): if z is in the message: turn ...
BitPythoner General Coding Help 4 3,007 Aug-16-2020, 08:28 PM
    Thread: function fails to exit
Post: RE: function fails to exit

Is the point of the program to add the entered number to it's positive counterpart?
BitPythoner General Coding Help 4 2,031 Aug-16-2020, 08:21 PM
    Thread: Started coding yesterday. Please review "Basic Calculator" I made.
Post: RE: Started coding yesterday. Please review "Basic...

You actually don't need 3 questions, you can string them into one: def calculator1(): global num1, num2, op equation = input("Enter an equation: ") try: answer = eval(equation) ...
BitPythoner Code Review 5 2,973 Jul-17-2020, 06:56 PM
    Thread: Tkinter - unicode
Post: RE: Tkinter - unicode

You can just copy paste unicode characters from this link: here You can easily use the image parameter from a label. label = Label(root, image=imagename)
BitPythoner GUI 4 2,815 Jul-17-2020, 06:52 PM
    Thread: Robots! (A game using tkinter)
Post: RE: Robots! (A game using tkinter)

Well, good luck on your program development! **smile**
BitPythoner Code Review 6 5,383 Jul-17-2020, 06:37 PM
    Thread: process finished with exit code -1073741819 (0xC0000005)
Post: RE: process finished with exit code -1073741819 (0...

Exactly
BitPythoner General Coding Help 8 5,439 Jul-17-2020, 12:21 AM
    Thread: could someone explain keywords, marks, and function
Post: RE: could someone explain keywords, marks, and fun...

comma separates multiple values such as in a function, tuple, dictionary, or simple variable. dot separates an object from a method, which signifies an object is doing something from a class. This is...
BitPythoner General Coding Help 14 4,547 Jul-17-2020, 12:19 AM
    Thread: Adventure book of your choice
Post: RE: Adventure book of your choice

Where the goblin tries to eat me, can you at least make a choice of trying to use the necklace to kill the goblin or something of that sort? Overall, great game. You should turn it into GUI with some ...
BitPythoner Code Review 5 2,907 Jul-16-2020, 02:21 PM
    Thread: Robots! (A game using tkinter)
Post: RE: Robots! (A game using tkinter)

Good job! Though you should adjust the game over tag not to overlap the scoring tab. You should also make the game more fluid, where the user moves instead of teleports to squares, additionally, why d...
BitPythoner Code Review 6 5,383 Jul-16-2020, 02:15 PM
    Thread: Easy Learning Python
Post: RE: Easy Learning Python 3

Why are you advertising a commercial product on the forum?
BitPythoner Bar 6 3,200 Jul-16-2020, 02:09 PM
    Thread: Centering labels and buttons
Post: RE: Centering labels and buttons

I think what you need is to change the width and height parameters of the buttons, width=..., height=...
BitPythoner GUI 8 11,728 Jul-16-2020, 02:06 PM
    Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself

Hi, I have been programming in python for 5 years and just saw this forum a few months ago, I decided to take a look. I like the community. Bitpythoner
BitPythoner Bar 431 230,050 Jul-16-2020, 02:00 PM
    Thread: Need Direction
Post: RE: Need Direction

This is an interesting idea, you would need to pull information from certain .gov websites, maybe using BeautifulSoup, than output it with some kind of graph. You could create a database with somethin...
BitPythoner Data Science 5 2,607 Jul-16-2020, 01:54 PM
    Thread: process finished with exit code -1073741819 (0xC0000005)
Post: RE: process finished with exit code -1073741819 (0...

Can you at least give us a main idea of your program? What does it do? Does it use a matlab created file?
BitPythoner General Coding Help 8 5,439 Jul-16-2020, 01:49 PM
    Thread: Going thru tutorials..."NameError: name 'raw_input' is not defined"
Post: RE: Going thru tutorials..."NameError: name 'raw_i...

NOTE: Python 2 might be simpler in some respects, but now that more people are transferring to python 3, you might need to use python 3 in order to better comprehend code. I am also aware some changes...
BitPythoner General Coding Help 4 4,246 Jul-14-2020, 02:19 PM
    Thread: an input question
Post: RE: an input question

As the above post said, there are several ways, one of which is to use the variable.is_integer() var=input("Enter a value") if var.isint() == True: return True else: return False
BitPythoner General Coding Help 4 2,093 Jul-14-2020, 02:15 PM
    Thread: Need help creating a simple script
Post: RE: Need help creating a simple script

You should import time and use time.sleep(seconds) to wait in the background, you could then use the os.system() command to kill the window.
BitPythoner General Coding Help 12 4,581 Jul-14-2020, 02:10 PM
    Thread: Natural Language Generation
Post: RE: Natural Language Generation

This is a good link for a NLG python API: https://pypi.org/project/nlglib/
BitPythoner Data Science 2 1,673 Jul-14-2020, 02:08 PM
    Thread: if the input is not number, let user input again
Post: RE: if the input is not number, let user input aga...

Use try and except in the following manner. try: Code to be ran if user entered int except: Code to be ran if user did not enter integer.
BitPythoner General Coding Help 14 8,704 May-31-2020, 09:43 PM

User Panel Messages

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