Skip to main content

Posts

Showing posts with the label Python

Machine Learning : Python

  PEMDAS : parentheses// exponent // multiply // addition //  subtraction //  division     Conversion   number to String str(year)   print() print("i m here"); str =  "i m here"; print(str); print(str," will be there"); print("Hello's "); // use  double quotes when using num title  ="\n\t roo rooo roo roo roo !" print("Song: ",title); print( len (str));  will print length of string  Slice Operation PYTHON : PYTHON[2:5] PYTHON[:2] PYTHON[2:] Integer Division result  = number1//number2  https://www.python.org/dev/peps/pep-0008/ ----------------------------------------------------------------- rain_speed =7; if rain_speed < 5:     print ("Just a Scotch mist") else:      print ("It's a real Cow-quaker out there") -----------------------------------------------------------------    Conditional Operators : and...