Python Quick Script Guy (with 20 basic questions)

In today's society, programming has become an essential skill. Python, as an efficient and concise programming language, is loved by everyone. Python language is easy to learn and use. It is very suitable for beginners to get started. It is also one of the necessary skills for recruitment by major companies.

So, how to quickly get started with Python and become a Python quick script kid? Here are some suggestions:

1. Learn basic grammar

Python syntax is simple and easy to understand, and learning basic syntax is the first step to get started. Learn the basic syntax of Python, such as variables, data types, lists, dictionaries, if statements, loops, etc. These basic knowledge will lay the foundation for your subsequent learning.

2. Install the editor

Choose a good editor or integrated development environment (IDE), such as PyCharm, Spyder, Jupyter Notebook, etc. They provide a wealth of features and tools to help you better write and debug Python code.

3. Learn common libraries

Learn commonly used Python libraries, such as NumPy, Pandas, Matplotlib, etc., which can help you perform data analysis, visualization and other tasks. There are many third-party libraries for Python. You can choose to learn related libraries according to your actual needs.

4. Practice items

Try writing some simple practice projects in Python, such as crawlers, text processing, games, etc. This can help you consolidate the knowledge you have learned and understand how to apply it to actual projects. Through practice, you will have a deeper understanding of Python's various features and usage.

5. Read the documentation and examples

Read Python official documentation and various sample codes to learn about Python's various features and usage. Python's official documentation is very detailed. You can choose to study relevant documents according to your own needs.

6. Take courses or learn online

Take Python courses or online learning, such as tutorials on the Python official website, Python courses on Coursera, etc. These courses can help you learn Python systematically and understand various application scenarios and technical details of Python.

7. Join the community

Participate in Python communities or online forums, such as Python Chinese Community, Stack Overflow, etc., to exchange experience and knowledge with other Python developers. The community can help you solve various problems, obtain more learning resources, and make friends with more Python developers.

In short, master the basic syntax and common libraries of Python, write some simple projects, and continue to learn and explore, and you will gradually become a Python quick script kid. Python is a very useful programming language that can help you solve various practical problems and make your life more convenient and interesting.


Basic questions

1. Write a Python program to print out all even numbers between 1-100.

2. Write a Python program to print out the length of the string entered by the user.

3. Write a Python program that accepts a number n as input and calculates the value of n + nn + nnn.

4. Write a Python program that accepts a string input from the user, reverses the string, and outputs it.

5. Write a Python program to find the largest element in a list.

6. Write a Python program to find the second largest element in a list.

7. Write a Python program to convert all letters in a string to uppercase letters.

8. Write a Python program to flip all words in a string.

9. Write a Python program to replace all vowels in a string with "*".

10. Write a Python program to replace all numbers in a string with "#".

11. Write a Python program that calculates the sum of all elements in a list.

12. Write a Python program that calculates the average of all elements in a list.

13. Write a Python program to remove duplicates from all elements in a list.

14. Write a Python program to merge two lists into one list.

15. Write a Python program to find the most frequent element in a list.

16. Write a Python program to find the element that appears the least frequently in a list.

17. Write a Python program to convert a string into an integer.

18. Write a Python program to convert an integer into binary, octal and hexadecimal forms.

19. Write a Python program to print out the first 20 numbers in the Fibonacci sequence.

20. Write a Python program to print out the number of all daffodils.

How to learn hacking & network security

As long as you like my article today, my private network security learning materials will be shared with you for free. Come and see what is available.

1. Learning roadmap

There are a lot of things to learn about attack and defense. I have written down the specific things you need to learn in the road map above. If you can complete them, you will have no problem getting a job or taking on a private job.

2. Video tutorial

Although there are many learning resources on the Internet, they are basically incomplete. This is an Internet security video tutorial I recorded myself. I have accompanying video explanations for every knowledge point in the roadmap above.

The content covers the study of network security laws, network security operations and other security assessments, penetration testing basics, detailed explanations of vulnerabilities, basic computer knowledge, etc. They are all must-know learning contents for getting started with network security.

(They are all packaged into one piece and cannot be expanded one by one. There are more than 300 episodes in total)

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

3. Technical documents and e-books

I also compiled the technical documents myself, including my experience and technical points in participating in large-scale network security operations, CTF, and digging SRC vulnerabilities. There are more than 200 e-books. Due to the sensitivity of the content, I will not display them one by one.

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

4. Toolkit, interview questions and source code

"If you want to do your job well, you must first sharpen your tools." I have summarized dozens of the most popular hacking tools for everyone. The scope of coverage mainly focuses on information collection, Android hacking tools, automation tools, phishing, etc. Interested students should not miss it.

There is also the case source code and corresponding toolkit mentioned in my video, which you can take away if needed.

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

Finally, here are the interview questions about network security that I have compiled over the past few years. If you are looking for a job in network security, they will definitely help you a lot.

These questions are often encountered when interviewing Sangfor, Qi Anxin, Tencent or other major companies. If you have good questions or good insights, please share them.

Reference analysis: Sangfor official website, Qi’anxin official website, Freebuf, csdn, etc.

Content features: Clear organization and graphical representation to make it easier to understand.

Content summary: Including intranet, operating system, protocol, penetration testing, security service, vulnerability, injection, XSS, CSRF, SSRF, file upload, file download, file inclusion, XXE, logical vulnerability, tools, SQLmap, NMAP, BP, MSF…

Due to limited space, only part of the information is displayed. You need to click on the link below to obtain it.

CSDN gift package: "Hacker & Network Security Introduction & Advanced Learning Resource Package" free sharing

Guess you like

Origin blog.csdn.net/Python_0011/article/details/133939297