Author: Aniruddha Chaudhari

cpp

[3 Ways] C/C++ Program to Swap Two Numbers Without Using Temporary Variable

How to write a C program to swap two numbers without using temporary variable? Use addition, subtraction, Multiplication, Division and XOR operation instead of extra space.

Python

Python Program to Swap Two Variables without using Third Variable

Write a Python program to swap two variables without using third variable in one line. It is most efficient solution as it does not use any temporary variable.

linux

How to Change VNC password in Linux Using vncpasswd Command?

Here is a simple command to Change VNC password in Linux using vncpasswd Command. Where to find VNC password file in Linux?

linux

[Step-by-Step] How to get serial number in Linux (Ubuntu) by Command?

[Step by step] How to get serial number in Linux (Ubuntu) by commands? Check serial number using dmidecode in Linux.

Python

How to Compile Code to Convert py to pyc in Python?

How to convert py to pyc in Python? What is pyc file in Python? How to create pyc file using different modules? Py vs pyc file in Python.

bit manipulation

[Two Easy Methods] How to Find 2’s Complement?

How to find 2’s complement of any number? 2’s complement of the number will be helpful in many bit operations.

Python

How to Find Unique Elements from List in Python?

How to Find Unique Elements from List in Python using set operation? Explained with complete program and by giving a simple example.

Python

How to Remove All Zero/None/Null from Dictionary in Python?

Write a program to remove all 0 from a dictionary in Python using python compression technique. How to remove all 0 from the dictionary?

Python

How to Get User Input in Python from Keyboard?

How to Get User Input in Python from the keyboard for both Python 2 and Python 3 version? Difference between ‘raw_input()’ and input().