Skip to content

Tag: python-3.x

Python websocket closes after few seconds

I am try subscribe API http://developers.xstore.pro/documentation/ Process how I am doing it. Login (Ok) Subscribe some command (Ok) The data starts coming in (Ok) After few second (cca 20s) (Fail) on: Python or API closes connection :( inicialize socket: Every 5s I am sending following ping There is a way to…

convert to upper case in python

I’m getting syntax errors, can anyone tell me what I am doing wrong Answer hey hi you have used “=” sign after print statement that’s why its showing there’s an error. Don’t use the “=” sign.. just use “print(result)”

I am having trouble with enemies in pygame

I have been trying to create an enemy class for my snake game that I can execute in my pygame loop, but my fill_screen() function keeps it so that either one enemy is on the screen at a time, or no enemies are on the screen. I hope someone can help me with this issue, because I have been working