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!

python3

  1. RAH S

    Python Why does this If Else statement not working in Python?

    I have the following code randomNum = random.randint(1,10) number = input("To enter the land you must guess my number in 3 guesses or be taken to the darklands: ") guesses = 1 while guesses != 3: print() guesses = guesses + 1 number =...
  2. stasio14

    Python Adding items to each other

    How to make program in python to add every item to each other, to get all of possibilities. Ex. I have a list [0,1,5,6] and I want the output to look like this: [0,1,5,6,50,51,55,56] I tried to make double loop, to add items, but it doesn't solve the problem for 3 or more elements. In above...
  3. T

    Python Problem with code

    Hello, I have a problem with this code, it says 'Alumno' object is not iterable, ¿what do i need to do to fix this problem?, thanks in advance. def Igual_Promedio(a, b): return sum(a) / 3 == sum(b) / 3 class Alumno: def __init__(self, data): self.data = i # Declaracion de...
  4. U

    I need help in coding for project development

    Hi everyone! I have a code in python for motor controller shield L293D, and I am still working on a project to control four motor simultaneously. I want to change some functionalities in code like motors moving forward without any keys and to detect the obstacles ahead of vehicle and apply the...
  5. James

    Python File Handling In Python

    Welcome back! I haven't done a tutorial in a while, so I thought I'd do one on a topic that I see some people struggle with. File I/O handling. Let's get started then. First of all you need to know how to actually define that file and open it. test_file = open("myfile.txt","r") The line above...
  6. W

    Python Premier League Simulation

    So I've created a simulator for the Premier League, which takes in all of the 20 teams and plays them against each other, recording the results and outputting a table at the end. The skill levels are based off a prediction in an article by The Telegraph (link at the end). I am wondering whether...
  7. TheATLAS

    Python I would like some feedback.

    Hello, I would like to ask you for some feedback on a recently finished project of mine. Currently, it can only run on Windows machines with python 3, but has lots of options. It's an assistant of some sorts that took me about a year to make, so I'd like to hear what I could add or improve...
Back
Top Bottom