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...
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...
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...
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...
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...
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!
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...