python

  1. P

    Python Tried many times to fix the string prediction problem but...

    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...
  2. nafisbd

    Python How do I prepare for a software engineering Msc(conversion) in 1 month

    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...
  3. Cooldude100

    Python How do I get paid ads on my website.

    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.
  4. Cooldude100

    Python I need devs for my project.

    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.
  5. Cooldude100

    Python Py-script chatgpt payment api

    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)...
  6. Cooldude100

    pyscript not showing

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

    How to transfer visa and Mastercard with sqlite

    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.
  8. Cooldude100

    How do I implement a python widget into an html website?

    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.
  9. Cooldude100

    Invalid syntax on html?

    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...
  10. R

    Python InactiveRpcError failed to connect to all addresses

    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...
  11. proompter

    Getting started w/ Python FastAPI Tutorial

    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...
  12. Louis2675

    Python What are some interesting physics-related topics for an 11th grade Python presentation?

    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...
  13. Kaworu

    Python Python gettext – I am afraid I do not know how to use that.

    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...
  14. S

    Python Chromedriver Automated image downloader not working.

    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 =...
  15. skifli

    Python Feedback on snake game.

    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...
  16. T

    Python PoS system

    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...
  17. F

    Python Help needed with back tracking type algorithm

    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...
  18. kkhhhkk

    Python Write an empty line at the end of my files

    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 =...
  19. Hartkeye

    Python Automated report writer

    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...
  20. Hartkeye

    Brand new to coding - First project idea?

    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...
Top Bottom