Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

#python

  1. fh1

    Python Made a script that can create notes, read and delete notes. (also create folders)

    hello i haven’t used this website in a while, but i wanted to show one of my scripts and ask for some feedback to make it a bit better :) import os createdNotes = [] createdFolders = [] print("Welcome to the note app!") while True: createnote = input("Type create to create a note (or...
  2. Kaworu

    Python I cannot slice Strings in a list

    Hi! I have a list of Strings whose contents begins with 5 characters, always the same, that I do not wanna. I want to get rid of them all for all the list individual contents. My code is something like this: for item in ENG_list: item = item[5:] print(ENG_list) Sadly, ENG_list, as...
  3. fh1

    Python inconsistent use of spaces and tabs problem

    Hello! Im having a problem with my quiz code. Its showing an error on line 42 saying there is a inconsistent use of tabs and spaces. I tried just using space but it still did not work, i even tried rewriting the line again but it still says it. points = 3 inventory = [] pointMultiplier = 2 shop...
  4. krisarmstrong

    Python Enigma - Decode

    I have an enigma machine that works for encoding; however, I'm lost on the decoding part. This was originally a C++ app that I have been converting to Python. from enigma_common import encode_rotor_10, encode_rotor_26 from enigma_common import n0, n9, nA, nZ def...
  5. fyzeri

    Python Google cloud API call with Python "Cannot read and write in different locations"

    Hi, I'm trying to make a API call to read data from google storage file and then to write that data to google bigquery. For both currently the region/location is set to EU but somehow I still receive the following API error "google.api_core.exceptions.BadRequest: 400 Cannot read and write in...
  6. S

    Python Received data in TCPIP Listener and store in text file.

    I am creating tcp ip listener in python . Kindly help me how to solved this problem 1 ) when I send data from client server received data and stop connection with client . 2.) I want to received data from 3 Clint's in same time . import socket ip = "127.0.0.1" port= 1234 server =...
  7. Khalon

    Python Newbie here needs help with setting up vscode.

    Hey, I'm going through an online python course, at the beginning I installed a linter he showed us, but for some reason, it looks different... why?
  8. S

    Python I'm writing a bot so that people don't give themselves money from the bot unbelievaboat?

    I am writing a bot so that people do not give themselves money from the bot unbelievaboat. There is such a bot for the economy. I want when people write add-money, the bot responds to them with remove-money like they are trying to give money and the bot takes it. I wrote the code, the bot writes...
  9. niiakoadjei

    Python I need help with Flask Form Submission Page

    # when I fill the form on the HTML Page (newfile.html) and click the SUBMITButton, NOTHING HAPPENS (No Saving file to database, and NO REDIRECT). # I need assistance because I'm a beginner and don't know if the problem is with my code or the IDE because the same code was working previously. #...
  10. K

    Python Struggling with this Python Program

    # QUIZ # # Modify the acceleration function so that it returns # the acceleration vector of the spacecraft. # # A sample of how to use the numpy.linalg.norm function # is given. This computes the length of the vector, and # it should be the only outside function you need to # use in your...
Back
Top Bottom