Python

Python

How to Draw the Indian Flag in Python?

[Complete Python flag code] How to draw Indian Flag in Python using matplotlib library?

Python

How to Get and Set Environment Variable in Python?

How to get and set environment variable in Python? Setting environment variable from file using getenv() and environ() methods from os module.

cpp

Program to Check and Print All Perfect Numbers in the Given Range

What is perfect number and how to check it using in C++, Java, Python? Write a program to find and print all perfect numbers in the given range.

Python

How to get the File Size in Python Program?

[Python Program] How to get the file size in Python? Read file size in bytes and human readable format. How to check if the file is empty or zero sized?

Python

Difference between index() and find() in Python

What is the difference Between index() and find() in Python? How to search sub string in Python string? ValueError: substring not found.

Python

[eBook] Cracking Python Interview | The Secrete to Land GOOD Job

Python Interview Questions and Answers Asked in Product Based Companies. How to crack Python interview?

coding challenge

[Solved] Minimum Arrows Required to Burst Balloons

Find how many minimum arrows required to burst balloons? Shooting arrows from left to right direction. If arrow hits balloon at height x, trajectory of arrow decreases by 1.

coding challenge

[Solved] Find Lexicographically Smallest and Largest Substring

How to find the lexicographically smallest and largest substring? Write a program to sort the sub-strings in lexicographical order in Java and Python.

Python

[6 Ways] Compare Two Lists in Python and Return Non-Match Elements

How to compare two lists in Python? Using lambda function, sort(), set() method to check if two lists are equal and have same elements.