© Sanjib Sinha 2017

Sanjib Sinha, Beginning Ethical Hacking with Python, 10.1007/978-1-4842-2541-7_8

8. General Syntaxes

Sanjib Sinha

(1)Howrah, West Bengal, India

In this chapter we will learn something just to try some codes. We will learn the same things in detail later. All we need to do now is just try to write some code in Python and see how it works. At the same time, we will learn about the general syntaxes used often in Python.

Create the main( ) function

As I said, Python scripts are almost like human language. You need not use a lot of special characters or symbols. All you need to remember is that “indentation” plays a very important role in Python. When you apply some special conditions inside your code, this indentation is important. ...

Get Beginning Ethical Hacking with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.