Python 17.6.20 Exercises

Source: Internet
Author: User

1 The contents of the document are as follows: Name, gender, age, salary

Egon Male 18 3000
Alex Male 38 30000
Wupeiqi Female 28 20000
Yuanhao Female 28 10000

Requirements:
Remove each record from the file into the list,
Each element of the list is {' name ': ' Egon ', ' sex ': ' Male ', ' age ': the form of ' salary ': 3000}

2 based on the list obtained by 1, take out the information of the person with the highest salary
3 based on 1 to the list, take out the information of the youngest person
4 based on the list obtained in 1, the name in each person's information is mapped to the first letter capitalized form
5 according to the 1 obtained list, filter out the information of the person whose name begins with a
6 using recursion to print the Fibonacci sequence (first two numbers and get the third number)
0 1 1 2 3 4 7 ...


Python 17.6.20 Exercises

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.