A dictionary is a data structure that uses the key:value pairs and can be written in the following way:
1 |
animals = {'dog': 'woof', 'pig': 'oink', 'horse': 'neigh', 'cat': 'meow'} |
A dictionary is a data structure that uses the key:value pairs and can be written in the following way:
1 |
animals = {'dog': 'woof', 'pig': 'oink', 'horse': 'neigh', 'cat': 'meow'} |
With PowerShell, you can export data to CSV using the Export-CSV cmdlet. It creates a CSV file of the object you submit. It’s really useful for admins. Instead of using Excel, you can quickly run a PowerShell script to create CSV files.
Continue readingYou can run Python in PowerShell the same way as from the command bar.
Continue readingThere are a few different ways you can execute a PowerShell script. In this tutorial, I’m going to show you the most popular methods.
Continue readingPowershell as the more powerful alternative to CMD offers a lot of features to manipulate text files. In this article, I’ll show you multiple ways how you can read text files.
Continue readingWhen we develop applications, the problem we often face is a string to datetime conversion. We have to deal with different formats and time zones. Sometimes we need to convert dates and times to human-readable format, and vice versa.
Continue readingYou can pass a list as an argument of a Python function the same way as any other type and it will be the same type inside the function.
Continue readingIf you need to check, whether a particular word is a word in the English dictionary, you can do it in Python.
Continue readingWith a few lines of code, you can read a file in Python.
You have to specify an absolute path to the file you want to read, or you can specify the current working directory.
Continue readingYou can create a Python file directly from the terminal. Follow these steps to do it:
Continue reading