Skip to content
Advertisement

Tag: python-3.x

Error with a player turn ending loop in the Zombie Dice game

I’m trying to develop a code for the zombie dice game. My problem is when the first player replies that he doesn’t want to continue playing. The game ends and I can’t get the second player to play. Can someone help me? Does anyone know what I’m doing wrong? I’m new as a programmer. If anyone knows how to help

How to get items that are true for ANY() method in Python

Say: How to get the signs it found true in the iteration? Here’s a way Is there a better one liner way of doing it? (Without the for loop maybe) Answer With the few modifications to the any expression, you can get whether each of the signs is in the expression, which signs are in the expression, or just the

beautifulsoup Case Insensitive?

I was reading: Is it possible for BeautifulSoup to work in a case-insensitive manner? But it’s not what I actually needed, I’m looking for all img tags in webpage, which include: IMG, Img etc… This code: Will only look for img tags case sensitive so how can I solve this problem without adding new line for every single possibility (and

Functions executing out of order?

I have a problem currently that makes no sense to me whatsoever. I am making a program that runs a script on a website using the selenium web driver. This is paired with a GUI I made with Tkinter. In short, I have a “Launch” button in the gui that is set to trigger this function: “script” is an external

Python Tkinter –AttributeError

Cannot seem to figure out the below Tkinter message. Usually doing a quick search will provide answers but this time I seem to miffed the search engines as to what might be causing the below error. Curious to know if I am missing a Python package or line 25 below is used in an older version of Python and it

Advertisement