Open in app
Home
Notifications
Lists
Stories

Write
Shweta Lodha
Shweta Lodha

Home

About

2 hours ago

How To Fix — ‘pip’ is not recognized as the name of a cmdlet, function…

Have you ever seen these errors: ‘pip’ is not recognized as an internal or externa, command ‘pip’ is not recognized as the name of a cmdlet, function… If you are a Python developer, then you must have seen at least one of these errors in your development journey. What exactly is is this error? This error…

Python

1 min read

How To Fix — ‘pip’ is not recognized as the name of a cmdlet, function…
How To Fix — ‘pip’ is not recognized as the name of a cmdlet, function…

1 day ago

Formatting A Text Based On Number Of Columns In Python

Say you have a text which is very long and occupying many columns or, in other words, say you have a text which is so long that the end user is seeing scrollbar because of the limited screen size. Now, when the text is very long and user viewable area…

Python

2 min read


4 days ago

Ways To Align Text Strings In Python

In this article, I’ll show you various ways to align strings in Python. There are many different ways we can align strings in Python. Let’s have a look at those: Left Align For left-aligned text, you can use ljust(…) function, which stands for left justification. my_text = “Shift me.” print(my_text.ljust(25) ) The…

Python

2 min read


6 days ago

Are Your Intellisense Working In Jupyter Notebook?

Can you imagine a life of a programmer using an editor having no intellisense support? In today’s era where most of us are working in many programming languages at the same time, it is very difficult to remember the syntax of all the programming languages? The one thing which is…

Python

3 min read

Are Your Intellisense Working In Jupyter Notebook?
Are Your Intellisense Working In Jupyter Notebook?

Aug 10

Trick To Simplify IF In Python

Using conditionals or say IF-ELSE statement is quite common when developing any application and based on the programming language, the syntax to handle such conditionals varies but the underline concept remains the same. In this article, I’ll show you how to write an IF statement in Python to check if…

Python

2 min read


Aug 9

Generate Pivot Table Using Python

Python is nowadays a very common language to use, especially when you want to automate something. Hence, we will go with Python to automate our today’s flow wherein we will generate a pivot table using Python and then we will save it back to Microsoft Excel. Input Data I’m considering CSV file…

Python

2 min read

Generate Pivot Table Using Python
Generate Pivot Table Using Python

Aug 8

How To Schedule A Python Script

Whenever we think about automating something, there are many questions which come to our mind. Like, How will we schedule it? How many times we want to execute it? Is it possible to automate this scheduling part? Well, in this article I’m going to walk you through all those various…

Python

4 min read

How To Schedule A Python Script
How To Schedule A Python Script

Aug 7

Print Calendar Of Any Year With Just 2 Lines Of Code

In this article, I’ll show you those two lines of Python code, using which you can print calendar of any year. Required Package The pre-requisite to generate calendar is to import the required package named calendar as shown below: from calendar import * Generate Calendar Now to generate a calendar, we need to call…

Python

1 min read

Print Calendar Of Any Year With Just 2 Lines Of Code
Print Calendar Of Any Year With Just 2 Lines Of Code

Aug 5

Have You Ever Sorted A Python Dictionary By Value?

It is quite common to sort a Python dictionary based on key. But what if you want to perform sorting on the value? In this article, I’m going to show you multiple ways to sort dictionary value and then return the resultant dictionary. Method 1: Using operator The very first method to sort dictionary…

Python

2 min read


Aug 4

Do you know the magic of REDUCE in Python?

Before jumping on to what is reduce, let’s have a quick look at the below lines of code: sum = 0 for n in [1,2,3]: sum = sum + n print(sum) You got it right. Here we are taking a collection having three numbers and summing them up. As such…

Python

2 min read

Shweta Lodha

Shweta Lodha

I’m C# Corner MVP, mentor, speaker, YouTuber & developer. YouTube: https://www.youtube.com/channel/UCQVOeT4i5nezvPG_xvIFzdQ Blog: http://www.shwetalodha.in

Following
  • Mvoca

    Mvoca

  • Alux

    Alux

  • Duane Michael

    Duane Michael

  • Heather Cooper

    Heather Cooper

  • Michael

    Michael

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable