All Activity

This stream auto-updates     

  1. Earlier
  2. $myString = "14 Char String" echo strlen($myString ); //Prints 14 The `strlen` function is what you need
  3. How can we find the length of a string?(PHP) I am a newbie
  4. vijadhav321

    App_Code folder

    Can we add code files of different languages in App_Code folder? https://crbtech.in/online-electrical-design-training-course
  5. Good evening, while i am running on cmd I am seeking the syntax error on main(). my code is as below: def main() : operation = input ("what do you wnt to do (+,-,*,/): ") if(operation != "+" and operation != "-" and operation != "*" and operation != "/"): #invalid operation print("You must enter a valiid operation") else: var1 = int(input("Enter num1: ")) var2 = int(input("Enter num2: ")) if(operation == "+"): print(add(var1, var2)) elif(operation == "-"): print(sub(var1, var2)) elif(operation == "*"): print(mul(var1, var2)) else: (print(div(var1, var2)) main()
  1. Load more activity