Tag: Python

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.

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.

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().

Python

Python Web Development | Build Best Website using Bottle Framework

[Complete Tutorial] Python web development using bottle framework is the easiest way to build your website. It is explained with a user login web page.

Python

[Complete Program] How to Set Default Dictionary Python Value?

[Complete Program] How to set a default dictionary python value? How to avoid KeyError in Python dictionary using get method?

Python

How to Reverse String in Python without using Function?

How to Reverse string in python without using function? Use extended slice syntax [::-1]. One line code for reversing string.

command

[Simple Steps] How to Clear Python Shell Interpreter Console Screen?

How to Clear Python Shell Interpreter Console Screen on Windows, Linux and Mac? Use lambda function.