Basics of Python Learning 11-Day Homework Questions

Source: Internet
Author: User

1, finishing function related knowledge points , write a blog

2. Write the function, check the element that gets all the odd bit indexes of the incoming list or tuple object, and return it to the caller as a new list.

3, write function, to determine whether the user incoming objects (string, list, tuple) length is greater than 5.

4, write the function, check the length of the incoming list, if greater than 2, then only the first two length of the content, and return the new content to the caller.

5, write the function, calculate the number of "number", "Letter", "Space" and "other" in the incoming string, and return the result.

6. Write function to check whether each element of the user's incoming object (string, list, tuple) contains empty content and returns the result.

7, write the function, check the length of each value passed into the dictionary , if greater than 2, then only the first two length of the content, and the new content is returned to the caller.

DIC = {"K1": "V1v1", "K2": [11,22,33,44]}

PS: Value in a dictionary can only be a string or list

8, write a function, receive two numeric parameters, return the larger number.

9, write functions, the user passed the modified file name, with the content to be modified, execute functions, complete the whole file batch modification operation (advanced).

10, write a function to complete three landing functions, and then write a function to complete the registration function (Advanced )

Basics of Python Learning 11-Day Homework Questions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.