Questions

  1. What is the difference between runtime and compile time exceptions in Python?
  2. What are regular expressions?
  3. Explore the Linux commands head, tail, cat, and awk.
  4. Write a Python program to append the contents of one file to another file.
  5. Write a Python program to read the contents of a file in reverse order.
  6. What would be the output of the following expressions?
    1. re.search(r'CWke', 'C@ke').group()
    2. re.search(r'Co+kie', 'Cooookie').group()
    3. re.match(r'<.*?>', '<h1>TITLE</h1>').group()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset