A.I, Data and Software Engineering

Tagpython

Automate Nat gateway deletion with lambda

petamind

Since NAT gateway is not cheap, in some cases, we don’t need to keep NAT Gateway running all the time. It is a good practice to automate the removal of the NAT gateway after finishing your task. This article will show how to implement a lambda function to remove the NAT gateway and associated Elastic IPs. What is aws lambda AWS Lambda is a AWS serverless compute service. It lets you run...

Asteroid Collision Solution – Leetcode coding challenge

The following asteroid collision problem is from Leetcode. The problem We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions. If two...

Top programming languages to learn 2020-2021

“What is the best programming language to learn” is generally not a good question. A language should bind to a purpose, developing environment. Set it aside, popular languages often come with trending jobs. Here is the list of top 7 programming languages to consider in 2020 and 2021. 1.  Python python trademark The programming language continues to be one of the best programming...

Advanced Python: Object operations and comparisons

In many cases, it is convenient to perform mathematical operations on objects rather than numerical values. Python classes have the ability to emulate the behaviour of numeric values to support operations like addition and subtraction. You can override many more to support number-like functionality. Numeric functions In the following table, the right column contains expressions...

Advanced Python: classes String and computed attribute

This article demonstrates more advanced features of Python classes and their customisation. Specifically, how enum objects are created, class to strings, and computed attribute. Class string values A string is typically an informal representation of the object. However, it’s just a nicely in human-readable form. Python provides 2 common methods, i.e. str() and repr(). We can...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Categories