Python if __name__ == “__main__”: main()

Python if __name__== __main__ main

You may have seen a curious syntax in some Python programs that includes a string like if __name__ == “__main__”: main(). Some might refer to it as the def main if name main idiom. The if __name__ == “__main__” has some benefits that you may want to consider, especially if you are a fan of single-file Python scripts. In this tutorial about if __name__ == “__main__”, we’ll take a look at what this pattern offers, and why it is smart to use it.…

Python Yield Keyword

Python Yield Keyword

The yield keyword in Python is typically associated with the use of Generators. In this tutorial, let’s take a look at the yield keyword in Python and Generators as well. Generators are used in Python to complete tasks associated with processing large amounts of data and doing so in a memory-efficient way. The yield keyword inside of a for loop provides a nice elegant syntax for using generators in Python.…

Python Datetime Module Tutorial

Python Datetime Module Tutorial

Working with various dates and times in computer applications is a universal requirement. When writing programs in Python, software developers can lean on the Python Datetime Module for help in calculating these sometimes complex concepts. The Datetime module in Python is extensive and offers functions for efficient time formatting and manipulation, as well as date and time math calculations. In this Python Datetime Module Tutorial, we’ll take a look at some of the commonly used functions in the datetime module and how to make use of them.…

Python os Module Tutorial

Python os Module Tutorial

Python has a dedicated module for working with and interacting with the operating system of the machine Python is installed on. This is the Python os module. It is a wonderful tool with many helpful functions making it possible to directly manipulate the file system. The os module works well on any operating system you like whether that be Windows, Linux, or Mac. The Python os module is very extensive and in this Python os Module Tutorial, we’ll take a look at some of the most useful and common techniques you can use.…

How To Create A Resource Group In Azure Portal

Azure Management Groups Vs Resource Groups

Resource groups are an important organizational structure within Azure. As you create resources in Azure, you must specify one Resource Group that the resource needs to belong to. This is how you organize resources within a subscription. At the highest level of the Azure hierarchy, we have Management Groups. The next level down is Subscriptions, and then after that are the Resource Groups. Note that Resource Groups can not be nested, they are a single-level entity.…

How To Configure Guest User Access In Azure Active Directory B2B

How To Configure Guest User Access In Azure Active Directory B2B

A high level of collaboration is possible in Azure, even with guest users. B2B Collaboration enables guest users to access resources in a given Azure directory using their existing credentials. For example, external contractors, consultants, or partners may need access and with guest accounts in Azure, you can provide that for them. These accounts can be assigned AAD roles or Azure RBAC roles as usual. To invite guests you will need the Name, Email address, personal message, groups, and directory role.…

How To Assign Users To Azure Active Directory Groups

How To Assign Users To Azure Active Directory Groups

Groups in Azure Active Directory are used to manage access to various resources in Azure. Assigning users in Azure AD to groups is done by direct assignment, group assignment, or rule-based assignment. A group owner can let users join groups by choice rather than by assignment. Depending on how the group was set up, the admin may need to approve or decline new members. In this tutorial, we’ll look at how to create a group in Azure Active Directory as well as how to assign users to that group.…