

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Python Lines and indentation Python programming if the code ends in In windows terminal we use backslash whereas in linux and python it uses forward slash. Comment starts with # used to describe be commands To disable lines of code. Dark Strings – Any statements enclosed within three double or single quotes. Used to tell the user how to use particular module. Ends with .py file it is a collection of commands H.W. Write a module in python programming for adding and multiplying four different numbers along with dark strings. Finding the factorial of a number Sum of n numbers Explicit Conversion python list to set Set to tuple List to tuple Type conversion text=” Hello world” Print(len(text)) First_char=text[0] Substring=text[7:12] Substring=text[7:12:2] Reverse_string=text[::-1] Reverse_string12=text[::-13:-1] Rev=text[:-13:-3]