Open in app

Sign In

Write

Sign In

Buildandteach: Henry Palma
Buildandteach: Henry Palma

13 Followers

Home

About

Apr 8

Python Mock Library

The Python mock library allows you to create mock objects in your unit tests. Mock objects simulate the behavior of real objects in your code without actually performing any of the real work. …

Python

1 min read

Python

1 min read


Feb 23, 2022

Terraform Basics (AWS)

Prequisistes Install AWS CLI: https://aws.amazon.com/cli/ Install Terraform: https://www.terraform.io/downloads Create a User on AWS: Open AWS Console → Go to IAM →Create User →Download user credentials csv Configure AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html Terraform Commands terraform init: Is used to initialize a working directory containing Terraform configuration files. This is the first command that should be…

Terraform

5 min read

Terraform Basics (AWS)
Terraform Basics (AWS)
Terraform

5 min read


Feb 17, 2022

Python Lambda Functions

Create a lambda function Anonymous functions in Python are called Lambda functions. Typical functions are in Python are defined using the def keyword. Anonymous functions are defined using the lambda keyword. 1) Create a lambda function

Python

2 min read

Python Lambda Functions
Python Lambda Functions
Python

2 min read


Feb 17, 2022

Python List Comprehensions

List comprehensions are an alternative to using for loops and lambda functions (next section). They are an elegant and concise way to define and create lists based on existing list or string. The syntax of a list comprehension Is as follows:

Python

1 min read

Python Lesson : List Comprehensions
Python Lesson : List Comprehensions
Python

1 min read


Feb 17, 2022

Python Dates and Time

The DateTime module is useful for handling dates in Python. 1) Get Current Date 2) Get Current Date and Time 3) Create and set a Date 4) Create and set a Date and Time 5) Date String Formats

Python

1 min read

Python Dates and Time
Python Dates and Time
Python

1 min read


Feb 17, 2022

Python Sets

Features of a Set A set is a collection of objects. It contains the following features: It is unordered The items in the set are unchangeable but the set is changeable It is unindexed Doesn’t allow duplicates 1) Create a Set 2) Loop Through a Set Use a for loop to loop through a set. 3) Add a item to a Set Use the add method to add…

Python

1 min read

Python Lesson 14: Sets in Python
Python Lesson 14: Sets in Python
Python

1 min read


Feb 17, 2022

Dictionaries in Python

Features of a Dictionary A dictionary is a collection of objects. It contains the following features: It is unordered It is changeable It is indexed Uses key value pairs 1) Create a Dictionary Dictionaries are created with an empty pair of curly brackets. 2) Accessing items in a Dictionary You can access items using the key or use the get() method or use…

Python

2 min read

Python Lesson 13: Dictionaries in Python
Python Lesson 13: Dictionaries in Python
Python

2 min read


Feb 17, 2022

Python Tuples

Features of a Tuple A tuple is a collection of objects. It contains the following features: It is ordered It is NOT changeable It allows duplicate members Smaller and faster than a list 1) Create a Tuple Use parenthesis to create a tuple. 2) Access items in a Tuple Items in a tuple are accessed by index. You can also use slice notation.

Python Programming

1 min read

Python Lesson : Tuples in Python
Python Lesson : Tuples in Python
Python Programming

1 min read


Feb 17, 2022

Python Lists

Features of a List A list is a collection of objects. It contains the following features: It is ordered It is changeable It allows duplicate members Create a list in Python Access an item or items in a list Lists are start at position 0. You can use slice notation like we covered in the strings chapter Loop through a Python List You can use a for loop to iterate…

Python

2 min read

Python Lesson : Lists in Python
Python Lesson : Lists in Python
Python

2 min read


Feb 17, 2022

Python Loops

Loops allow you to execute a block of code multiple times. There are 2 types of loops in Python: For Loops While Loops Writing a For Loop based on a range: The range function generates a sequence of numbers starting with 0. Writing a For Loop based on a subset of a range: Use the range function to generate a loop starting at position 5 and ending at position 9 Writing a For Loop using step counts: Use the range function to generate a loop with 10 positions and output only every 2 positions.

Python

1 min read

Python Loops
Python Loops
Python

1 min read

Buildandteach: Henry Palma

Buildandteach: Henry Palma

13 Followers

Technology Tutorials

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams