I am running this code below:
# Import modules
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
"""
This module is a string prediction model using LSTM.
It takes a...
Hi,
I am a non computing graduate. Have basic HTML knowledge gather using freecodecamp. I am transitting from marketing industry to IT (programming) industry. I have enrolled in a masters in UK which will start in just one month. But I am not sure If i will be able to fully concentrate or spend...
I am making a payment website using stripe. It is sort like paypal or venmo. But you don't need any transaction fees. The way I hope to accomplish this is with ads. I am using anvil but there is no ad option.
Hello, my name is Grayson. I am looking for devs to help me create a payment Api for a website called Fruit surf. They will get half of the revenue from the website as long as they are a dev. Please help me. Also they must use python and know pyscript.
I am having troubles with trying to figure out how to use a payment Api. So, I asked ChatGPT to help me. Here is the code:
import jsonfrom http.server import BaseHTTPRequestHandler, HTTPServerclass PaymentHandler(BaseHTTPRequestHandler): def _send_response(self, status_code, data)...
I am using pyscript and typed in this code
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
<body>
<title>Making transactions so much easier! Fruit Surf</title>...
Hello. I am making a money transferring software like Venmo or PayPal and I was wandering if anyone could help me get the code for the transactions. I am using SQLite and not flask. If anyone can help, please do.
Hello, my name is Grayson. I am a beginner coder. I was wondering if there was a command that could make a widget in my html website that was a python script. Just wondering.
Hello, my name is Grayson. I am a beginner coder who is twelve years old. I took this code from a website:
<!DOCTYPE Html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
And it put out this error:
File "C:\Users\grays\OneDrive\Desktop\Test.html", line 1...
Hi I am trying to write a test grpc client and service in python. When I use an insecure channel, everything works stably, but if I try to establish a tls connection, an error occurs. To write code and create a chain of certificates, I used this guide.How can I make this example work?
grpcio...
Hey guys,
I've just created a new channel where I'm going to cover Full Stack related topics extensively, including Python.
Content isn't being monitized at the time of posting this so this is 100% free, hopefully you will learn a thing or two :)
If you can like, comment, share and subscribe I'd...
Hi there,
I have a presentation to make for my physics class (11th grade). My teacher told me I can choose any topic but with two main conditions :
The topic must have a link with physics
I need to make a Python program linked to it
Therefore my problem is : I have no idea about what topic...
Hi!
I found this tutorial for using gettext with Python. I am in this step:
$ pygettext.py -d base -o locales/base.pot src/main.py
My locales are located in a folder like that:
C:\Users\DELL\Desktop\gettext-learning\locales
[The folder gettext-learning also contain main.py file, which is...
import os
import time
import requests
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
# Prompt user for search term and number of images to download
search_term =...
Hey,
For fun I challenged myself to make a snake game in Python entirely in the console without any external libraries (apart from `colorama` and `pynput`). I was wondering if anyone might have any feedback on the game's code, specifically in ways to simplify the code. The code isn't that well...
Im creating a simple PoS system on python using tk for my GUI, so far i have made a log allowing access to the code and a menu system to go with it. I have also made a SQL database to keep item descriptions linking it to the GUI to create buttons
My issues/criteria:
i need the total price...
I am trying to develop a swiss tournament pairing algorithm and I am essentially using a backtracking algorithm that gives a value for each terminal position based on how well it has matched the players. It seems to mostly be working but it will for some reason allow an empty pairing list with a...
I have the following code that writes out multiple files. I want this code to also write out an empty line at the end of each file produced, I've tried adding ('\n\') inside the loop however it adds an empty line to every line which is annoying
i = 0
f = open('innput.txt','r')
always_print =...
Hello, i've come up with an idea for my very first project in python, and have some questions about formatting the data in an efficient way prior to writing the code for it. I want to be able to take data from tables i've created in an Excel file, and based on those data points, create a word...
Hello! I'm brand new to learning coding (Codewithmosh.com is what I'm currently learning C++ on.) I had an idea for a project that would help lessen my work load at my job. 90% of my work is writing reports. They are all very similar with small differences based on the contact. We write our...