Programming Videos

  • View all videos
  • blank
  • Loops in Python
    mrdaniel published this on 1/3/16 | python, loops
    Comments
  • +
  • 0
  • -
  • Couldnt we rather have the entire string coverted to lowercase/uppercase by usinfg the string.upper() or string.lower() in-built function in python3 ? sen = " Hello World ! How are you ? " print("The sentence in uppercase is :", sen.upper()) print("The sentence in lowercase is :", sen.lower()) Is there any difference between the uppwer and lower in-built functions and the method you have used ?
  • +
  • 0
  • -
  • Nice engaging tutorial. The little tricks added in here and there are especially helpful--like stepping backwards with arr[::-1]. But what would be a good strategy for finding these useful functionalities in python without hoping somebody brings them up? Maybe I should learn 3 or so new functions or features directly from python's documentation per day.
  • +
  • 0
  • -
  • In Python 3 you write names = ["Jon","Joshua","Jacob","Jimmy","Beth","Sofie","Coco"] for i in range(0, len(names)): print(names[i])
    Log in to submit a comment.