

69D experience
69D experience
Factorio snd Dead cells
I was reading your comment and the just came in the inbox. Lol I don’t even use plex at this point.
My favourite piece of okinawa advert.
That cover art monster looks like it is straight from fear and hunger 2
After the split x becomes (1 and z becomes 1). They can’t be converted to float. I think that’s why. Let me run the code. Edit - Also as you are returning a, b, c from splitter but Python functions return a single object. The a, b, c turns to a tuple. But you are using js syntax I think. So we have to unwrap inside the calculate function.
Now my original comment is not useful but you can try to introduce a conditional to check of the numbers x and z are actually numbers before converting to floats
# Ask user to enter an expression and display output
def main():
expression = input("Expression: ")
print(calculate (splitter (expression)))
# Split expression into components and assign to variables as float values
def splitter (expression):
print(expression)
x, y, z = expression.split()
print(expression.split())
return x, y, z
# Calculate expression result
# Changes Beginning
def calculate(numbers):
x,y,z = numbers
# Changes End
x, z = float(x), float(z)
if y == "+":
return str(round((x + z), 1))
elif y == "-":
return str(round((xz), 1))
elif y == "*":
return str(round((x*z), 1))
else:
return str(round((x / z), 1))
main()
At this point, these matches are becoming boring. Yeah india played against Pakistan sixth time in 2 years. Can’t wait to watch it. Also India and Pakistan have bad blood between them but still come to play together because money rules.
I knew that so coordinate are for my college not my residence
Sorry I will work on it. Thank you
Extend of Bodily autonomy in the land of free. /s