Welcome!

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

SignUp Now!

python 3

  1. 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>...
  2. 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.
  3. P

    Python Compiles Python code with no error but giving out no output - what's wrong with it?

    Am running Python 3.8.10 in a 32-bit Windows 7 computer with only 2GB memory and no video card (not even an NVIDIA) - it's a two decade old netbook... Tried running the following code: import numpy as np from scipy import ndimage def predict_next_string(database): # Split the database into a...
  4. 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 =...
  5. F

    Python Need help with my code for a tkinter gui youtube downloader - AttributeError: 'int' object has no attribute 'cget'

    First things first, Im german (strings in german aswell) and a bloody beginner when it comes to coding, but its fun and I want to improve. This code worked perfectly fine until a changed something that made this error appear: AttributeError: 'int' object has no attribute 'cget' The cget...
  6. Dev16

    Python how can I remove strings starting with specific character? from python list

    I want to remove links that starts with '/'. I have no idea what so ever on how to tackle this problem since I am new to coding thanks in advance for any help Here is the List lst =...
  7. S

    Python How to kill a thread?

    Hi, I want to kill / stop a thread at an event, within my websocket class, how can this be done? Will the same thread, that was opened when the connection was made, also be killed? import threading from threading import Thread import signal, sys, json import os import shutil import logging...
  8. heisenberg_1995

    Python Change Mouse Cursor Style while parsing through an image in OpenCV

    I want to change my cursor style from default to cross while parsing through an image. To do that I came across Tkinter, So, how can I integrate the following code with Tkinter? I can change the cursor style in a Tkinter window. Any other solution is also acceptable for me. import cv2...
  9. Giord

    Python From R to Python for an econometric analysis

    Hello everyone, since I'm new here I beg you pardon if this post does not fully respect the guidelines but I have some problems in conducting an econometric analysis with R, but since it does not work I decided to run it with Python. I'm conducting an analysis on cumulate prices and quantities...
  10. kin

    Python can’t encrypt a server disk with fernet PYTHON3

    key = Fernet.generate_key() with open('thekey.key','wb') as thekey: thekey.write(key) for root, dirs, files in os.walk("c:/sqlserver/database/clients/"): for file in files: if file == 'driverget.py' or 'thekey.key': continue print(os.path.join(root, file))...
  11. M

    Python Python - Category tree of an e-commerce scraper

    Hello, we would like to open a marketplace and implement this with Magento, but you need a category structure tree and if it should better add example properties for products such as: size = S,L,M,XL This would go beyond the work of creating it yourself. While we are interested in the category...
  12. chrswe03

    Python What should be my next steps to solve this sorting/resolving issue?

    Hi all, first post here. Working on a project for corp, we take in lots of emails and need to process them accordingly, my role is to automate this process however possible.. What I've done so far: - Grab the email, convert it out of .msg format and into a more friendly format. - Developed the...
  13. ahmedbarbary

    Python How to keep columns header on excel without change after export data to excel file?

    I work on sql server 2017 I run script depend on python language v 3.10 . I need to export data to excel fileStudentExport.xlsx already exist, and keep header without change after export. header of excel file StudentExport.xlsx before export data to it as below StudentId,StudentName after...
  14. Kaworu

    Python Exception is always raised + my function is not working

    Hi. I have made a really simple Python program that calculates values in Celcius, Fahrenheit and Kelvin degrees. Sadly, I have two problems with it: 1. There is a check if the value of degrees (string, C or K or F) is correct (if not, then there is an exception being raised). Sadly, the code...
  15. DisguisedEagle

    Python Help me fix this code

    def solve_board(board): for i in range(9): for j in range(9): if board[i][j] == '0': for k in range(1, 10): if not check_number(board, k, i, j): board[i][j] = str(k) if solve_board(board)...
  16. esqhol

    My python learning app

    Hello, I recently published an app that I built for google play, I would like to reviews from you about the app and suggestions for improvements. The app is made for python learning, practice, and competing against online players. App name: Sigma- code wars Link...
  17. splaq

    Python System Tray Python app issue with building a list.

    I am working on an app right now that is basically google calendar in your system tray, I'm running into the issue in the build_calendar_list() method. I'll post the code below, but everything works the way I would expect until I choose a calendar from my list of calendars. When I choose a...
Back
Top Bottom