Codeigo

Just programming

Skip to content
  • Python
  • PowerShell

Sort Dictionary by Keys or Values in Python

A dictionary is a data structure that uses the key:value pairs and can be written in the following way:

animals = {'dog': 'woof', 'pig': 'oink', 'horse': 'neigh', 'cat': 'meow'}
Continue reading →
This entry was posted in Python on February 5, 2021 by admin.

Export to CSV in PowerShell

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 reading →
This entry was posted in Powershell on January 28, 2021 by admin.

Run Python in PowerShell

You can run Python in PowerShell the same way as from the command bar.

Continue reading →
This entry was posted in Python on January 23, 2021 by admin.

Run PowerShell Script

There 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 reading →
This entry was posted in Powershell on December 8, 2020 by admin.

Read Text File in PowerShell

Powershell 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 on how you can read text files.

Continue reading →
This entry was posted in Powershell on November 27, 2020 by admin.

Convert string to datetime in Python

When 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 reading →
This entry was posted in Python on May 1, 2020 by admin.

Passing a list to a function in Python

You can pass a list as an argument of Python function the same way as any other type and it will be the same type inside the function.

Continue reading →
This entry was posted in Python on April 28, 2020 by admin.

English dictionary in Python

If you need to check, whether a particular word is a word in the English dictionary, you can do it in Python.

Continue reading →
This entry was posted in Python on April 28, 2020 by admin.

Read a file in Python

With 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 reading →
This entry was posted in Python on April 22, 2020 by admin.

Create a Python file in terminal

You can create a Python file directly from the terminal. Follow these steps to do it:

Continue reading →
This entry was posted in Python on April 22, 2020 by admin.

Post navigation

← Older posts

Recent Posts

  • Sort Dictionary by Keys or Values in Python
  • Export to CSV in PowerShell
  • Run Python in PowerShell
  • Run PowerShell Script
  • Read Text File in PowerShell
Proudly powered by WordPress