- 2 Posts
- 15 Comments
palmtrees2309@lemm.eeto Anime@ani.social•OKITSURA: Fell in Love with an Okinawan Girl, but I Just Wish I Know What She's Saying • Okinawa de Suki ni Natta Ko ga Hougen Sugite Tsura Sugiru - Episode 12 discussionEnglish2·1 month agoMy favourite piece of okinawa advert.
That cover art monster looks like it is straight from fear and hunger 2
A palm tree outside my house
palmtrees2309@lemm.eeto World News@lemmy.world•“There is no money to survive”: Long COVID pushes India’s marginalized workers deeper into povertyEnglish11·1 month agoA billion of Indians have no spending capacity. And at same time youth is unemployed but every department or organisation says they are under staffed. It is almost like they wait for elections to roll puy new vacancies for government jobs.
It is a bot that is spamming the fediverse with links and stuff. It is messaging lots of people trying to get them to click links.
palmtrees2309@lemm.eeto Programming@programming.dev•Why is my output not formatted as a string?English31·2 months agoAfter 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()
Are goth girls that sweet?
palmtrees2309@lemm.eeOPto Programming@programming.dev•I have created my Portfolio site as a computer underGrad. Please rate / roast it.English2·2 months agoI knew that so coordinate are for my college not my residence
palmtrees2309@lemm.eeOPto Programming@programming.dev•I have created my Portfolio site as a computer underGrad. Please rate / roast it.English9·2 months agoSorry I will work on it. Thank you
palmtrees2309@lemm.eeto World News@lemmy.world•Marital rape: India anger as judge frees man accused of raping wife who then diedEnglish191·2 months agoAnd india is going after youtuber Comedians for dark comedy.
palmtrees2309@lemm.eeto World News@lemmy.world•Trump withdraws from Paris climate agreement, againEnglish61·3 months agoYeah climate change is going to wreck havoc everywhere.
palmtrees2309@lemm.eeto World News@lemmy.world•Removal of waste from site of 1984 Bhopal disaster dismissed as ‘farce’English71·4 months agoI can’t comprehend how CEO was left to leave on his charter plane after getting arrested in India.
I thought this was about police being a lap dog for the elite
Better way would be providing credits, MSME loans and simplfying the red tape and tax law for local business than giving loops holes for adani and ambani billionaires.