Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)P
Posts
1
Comments
16
Joined
2 yr. ago

  • Not expected Amitabh Bacchan and Indian who wants to be a Millonaire or Kaun bane ga Crorepati. Lemmy has got me suprised. Also HTML is markup not a programming language.

  • It means because of a orange guy and his tariffs the whole market is down. So we have to compare it with whole market. If it has fallen more than half of stocks, then we can say it just adobe's fault and not just market's fault. To get this idea we take the average of stocks which S&P500 which shows the average stock price for 500 biggest companies.

  • The actual shitposter

  • Lemme guess south asia.

  • Me to my cycle and moped - I love you both

  • Tech culture is around 10 years late here in India. So I can say I have worked with above tools. But CD Roms are now thing of past. Pen Drives, HDD and SDD are now tool of the game now.

  • Bro forgot to give instructions to install docker and linux.

  • A palm tree outside my house

  • This is so true. Recently a new quick commerce app, Zepto have started operation in my area. For customer acquisition they hand out 100 inr off. I with my android have received a lot of them in couple of past weeks but my roommate with an iPhone has received few and far between.

    This is also the case of all the quick commerce apps here in India.

  • 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()
    
    
      
  • Waiting for a youtube iceberg video to mention this incident

  • I knew that so coordinate are for my college not my residence

  • Sorry I will work on it. Thank you

  • Programming @programming.dev

    I have created my Portfolio site as a computer underGrad. Please rate / roast it.

    shaswat.software
  • Thanks for adding the bottles shadow

  • Commit genocide and steal water from deprived communites.