Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

python

  1. quochungbcvt

    Python Personal Experience: Finding Free Python Books

    Hey CodeForum Community! I recently stumbled upon a fantastic resource for anyone learning Python, and I wanted to share it with you all. The site is ThinkJava.net, and it offers a wide range of free Python eBooks. I've downloaded a few and found them incredibly helpful for improving my...
  2. jberndt

    Should I Turn My Lightweight API Scheduler into an Open-Source Project?

    Hey everyone, I recently came across a scenario where I needed a lightweight solution to schedule delayed and recurring callbacks for my API. Specifically, I wanted my API to interact with a service that could trigger a designated endpoint, for example, after 2 hours. Additionally, this service...
  3. Letsrespy

    Python Skill Check Bot

    I wanted to know if there is a way with python or any other code to automate a skill check like this I saw some stuff for dbd but it’s not the same skill check that I would be to be solved. The target is to press the Butto E everytime the blue line is on the the red line but the blue line is on...
  4. dumps41

    Python how do i get numberOfItemsHired to accept only 1-500 items, and if not 1-500 display an error message

    how do i get numberOfItemsHired to accept only 1-500 items, and if not 1-500 display an error message? This is my code, I've tried if not int(entry_numberOfItemsHired.get()) >= 1 or int(entry_numberOfItemsHired.get()) <= 500: and I've also tried using: if...
  5. S

    Python Sending String from PyCharm via usb to nxt, which is programmed by Bricx CC

    Hello guys,I am new on this platform and hope for some help. So, I am doing a school project right now and we are working with Lego Mindstorms NXT and write the program with the Bricx Command Center. I know that this is pretty old but maybe some of you have tips or ideas. So my idea was to...
  6. F

    Full Snake Game With Python

    Full Snake Game With Python including full code and explanations about the physical aspect of the game. https://codingwithfad.com/create-a-snake-game-with-python-2/ password: 010101 Enjoy!
  7. C

    Python How can i terminate a task in task manager using python?

    Well its a long story,i'll give you details in the comments for people who are intrested in helping me,before i start i do not have admin and im locked out of bios,my dad has a software called norton family,it has many features,and most i have bypassed,except for the deleting "suspicious" files...
  8. R

    Python issues when trying to pull from database using SQLite3

    Hi, I'm a bit of a noob with python flask so I'm unsure if this is an issue for here or for the SQLite (Have already tried flask and databases but their solutions lead me to think this is a issue with the DB but they said to go to python) page or something else, so apologies for that off the...
  9. N

    Python - Path to working directory and files.

    To create a portable application or script, the first step is to set a universal method so the working directory will always find its dependent files. And the most dependable way is to utilize the standard libraries that Python comes with, in this case, "sys" and "os". To avoid the program...
  10. EkBass

    Chat locally with Llama2-7b via console

    Hi folks. I am surprised of the development of the smaller models in past two years. Current 13b and even 7b models can outrun DaVinci 3.0 thought OpenAI has also moved on with its products. However, im using I7-7700 with 32gb ram (no GPU) and this client with 7b model runs smoothly. No need to...
  11. martian94

    Python Bubble sort with iteration print

    Hello! I'm new to coding and I am in the noob phase. I am tasked with creating a bubble sort algorithm. My problem is, hopefully, quite simple to you. The iterations in the print statements seem to sort the numbers list right away, instead of printing each iteration of two numbers switching...
  12. FastFooDD

    Python calculator works fine but after one operation its result is always 0

    from customtkinter import * import tkinter.messagebox app = CTk() app.geometry("420x500") app.resizable(False, False) set_appearance_mode("dark") tempLabel = "" valuesInt = "" valuesInt2 = "" i = 0 i2 = 0 symbol = "" #[FUNCTIONS] def labelUpdate(button): global tempLabel tempLabel +=...
  13. L

    Python ValueError: non-broadcastable output operand with shape (352,1) doesn't match the broadcast shape (352,2)

    import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import LSTM, Dense import numpy as np from sklearn.preprocessing import MinMaxScaler from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt # List of GIDs to be used...
  14. Velpus Captiosus

    Python Python Web Programming Flask website cookies issue

    I have this function in Flask: @app.route('/<usrname>?<app>',methods=['POST','GET']) def mainW(usrname:str,app:str): if request.method=='POST': action = request.form.get('action') if action == 'email': return...
  15. Kaworu

    Python [Flask] I have error with my database (flask shell runtime error)

    Hi! I am still trying to learn Flask. And I have some problems that I cannot fix myself. Okay, so now I have a code (classes) that define a database. And I would like to generate the database in flash shell. However, I have some fundamental error with my database, yet I do not know why. My...
  16. Kaworu

    Python [OOP] I can't create an object - I got an invalid syntax error.

    Hi. I created a simple script to generate safe passwords. When I tried to rewrite it as OO code, I suddenly have an error. My code is this: The error is in the first line after if __name__ == "__main__". Exactly in the place when there is an equality sign. SyntaxError: invalid syntax Its...
  17. A

    Python Online Compiler

    Python Online Compiler & Editor Python online compiler lets you write, share, and compile Python code online – It’s the quickest and easiest Python’s online compiler for almost all versions. The best part is that you don’t need to worry about installing anything on your device. There’s no need...
  18. A

    Python Dive into Data Structures with Online Python Compiler!

    Hey Python Enthusiasts! I hope this post finds you well on your coding journey. Today, I'm excited to share a fantastic resource for honing your skills in data structures using Python. Drumroll, please... 🥁 Introducing Our Online Python Compiler for Data Structures! Whether you're a beginner...
  19. Kaworu

    Python Python tutorial: apparently gamemap: GameMap in entity.py does not work?

    Hi! I am following the Python Roguelike tutorial. I am currently in the 6th part of it. And in my source code there is an error I cannot fix myself. When I am trying to run main.py, the window with the game gets generated. However, when I try to make any move, an error occurs: Traceback (most...
  20. Velpus Captiosus

    Python Element is added to a list when it shouldnt

    Hello everyone.Only part of the Node class is relevant to my question: import math class Node: prevNodes = [] b = 0.5 def __init__(self,value,nextNode): self.value = 0 if nextNode is not None: self.nextNode = nextNode...
Back
Top Bottom