DEV Community

TimothyAgevi
TimothyAgevi

Posted on

Python Syntax

1 .When writing functions

  • Just as other programming languages python uses parenthesis (),when declaring functions. However instead of using curly brackets{ }to to embed its code,it uses indentation below is an example:

def greeting():
return hello World!

2. Commenting Out code
-use # for single line comments
-Use triple quotes for multiple line comments

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.