I want to take output from a function to use in a IF statement in another function
I know what cause is of the problem. When I loop through the if/else statement, the function gets called again and asks the question again. From line 10 – 35.
If statement acting as if condition is false when ostensibly true
I’m having trouble with a personal project. There is a particular part of code, where sometimes it will act as if the if condition is false when it’s true and I can’t figure out why. This is for the elif at the bottom. Below are my error, prints, and code fragment. The issue only seems to appear when there is only one object in the list and even then only sometimes.
Multiples of 3 or 5 Can this be done using else if statements?
I’ve tried the following code and it works fine except for 0 or negative numbers, it says:
“cannot access local variable ‘add_list’ where it is not associated with a value”.
How to make a proper choice section?
I’m trying to write a basic choice system, though I am having issues.
Python, elif caused problem while else didn’t
my code didnt show error but it didnt show what I expected.
It is a code to mark “X” on a 3×3 table. Here is the code
Invalid python syntax somehow?
I was trying to write some python code and it’s repeating invalid syntax for some odd reason, I can’t figure our what the big issue is?
Why does my if statement return false when using ‘and not’? [duplicate]
This question already has answers here: Python – checking if an element is in two lists at the same time (12 answers) Python: Check if element is not in two lists? (3 answers) Closed 4 days ago. I am trying to make a hangman game in python for practice(I’m pretty new to coding and a […]
How come my code is not recognising Alien_colour?
When I run this code I dont get any output? What am I doing wrong?
My if statement seems to be incorrect, how can i improve my code?
`print()
user = input(f”Put in your name to see if your able to respond:”)
print()
taking a coding camp just having trouble with my elifs
im creating a rock paper scissors game and for some reason my elifs are not working. keep in mind that im not great at python and i just need an explanation and an example as to how i need to fix it so i can fix it if i run into the same problem at a later date. thanks!