Found 10784 Articles for Python

Why You Should Learn Python Programming?

Mohd Mohtashim
Updated on 24-Jan-2020 10:58:56

188 Views

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages.Python is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Web Development Domain. I will list down some of the key advantages of learning Python −Python is Interpreted − Python is processed at runtime by the interpreter. You do not need to compile your program before executing it. This is similar to PERL ... Read More

10 Reasons why you should Learn Python

Sharon Christine
Updated on 23-Jan-2020 05:21:27

1K+ Views

Python is a totally free language to download, use, and code. Its commands are mostly in simple English. This makes it easy to remember and write commands. The code is readable and with a little knowledge, a developer can learn many things just by looking at the code.It has standard libraries that offer a lot of functionalities which lets you implement complex applications with ease. Python was designed with the newbies in mind. The use of white space and common expressions has eliminated the need for tedious variable declarations and ugly braces.Your First Steps in ProgrammingPython can be your starting ... Read More

How to Install Python 3.4.4 on Ubuntu

Sharon Christine
Updated on 22-Jan-2020 07:09:04

3K+ Views

Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL).This article describes “How to install Python on Ubuntu”Installing Required PackagesTo install python, it should require prerequisites as shown below-$ sudo apt-get install build-essential checkinstallThe sample output should be like this –Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. The following packages were automatically installed and are no longer required:    gtk2-engines-pixbuf libbs2b0 libopusfile0 libpyside1.2 libqmmp-misc ... Read More

How to Test your Broadband Speed from Linux Terminal

karthikeya Boyini
Updated on 20-Jan-2020 12:20:52

227 Views

To install speed test CLI command line, it should require Python ppi. Use the following command to install Python ppi .$ sudo apt-get install python-pipThe sample output should be like this –Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:    libbs2b0 libopusfile0 libqmmp-misc libqmmpui0 libsidplayfp    linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic    linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic    linux-signed-image-4.2.0-27-generic php7.0-opcache Use 'apt-get autoremove' to remove them. The following extra packages will be installed:    python-chardet-whl python-colorama python-colorama-whl python-distlib    python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl    python-requests-whl python-setuptools python-setuptools-whl python-six-whl    python-urllib3-whl python-wheel Suggested packages:    python-genshi Recommended packages: ... Read More

How to Install and Use Command Line Cheat Sheets on Ubuntu

Sharon Christine
Updated on 20-Jan-2020 10:42:56

285 Views

Cheat is a command line primarily based on Python software that lets in system administrators to view and save helpful cheat sheets. It retrieves simple-text examples of a delegated command which will remind the user of alternatives, arguments, or commonplace makes use of. Cheat is used for “commands which you use frequently, however now not frequently sufficient to consider”Installing CheatBefore installing Cheat, we need to make sure that everything’s up to date on the system as shown in the below command –$ sudo apt-get update && sudo apt-get upgradeInstalling Cheat is best done with the Python package manager Pip. To ... Read More

Fish – A Smart and User-Friendly Interactive Shell for Linux

karthikeya Boyini
Updated on 20-Jan-2020 09:49:51

117 Views

The Pleasant Interactive Shell which is called and abbreviated as FISH is a shell for UNIX and UNIX-like operating systems. It is a unique and innovative command line environment with a number of priceless improvements. Fish is designed to work with any other shell like bash or ZSH. Unlike different shells which disables more than a few elements with the aid of default to save process resource, FISH maintains all of them enabled by means of default in an effort to make most out of it.FeaturesIt is a User-friendly and interactive shellIt has so many powerful featuresInbuilt Web-based configurationIt supported ... Read More

Find Numbers with Even Number of Digits in Python

Arnab Chakraborty
Updated on 29-Apr-2020 08:24:34

1K+ Views

Suppose we have a list of numbers. We have to count the numbers that has even number of digit count. So if the array is like [12, 345, 2, 6, 7896], the output will be 2, as 12 and 7896 has even number of digitsTo solve this, we will follow these steps −Take the list and convert each integer into stringif the length of string is even, then increase count and finally return the count valueExampleLet us see the following implementation to get better understanding − Live Democlass Solution(object):    def findNumbers(self, nums):       str_num = map(str, nums)   ... Read More

Unique Number of Occurrences in Python

Arnab Chakraborty
Updated on 29-Apr-2020 08:01:26

591 Views

Suppose we have an array. We have to check whether each element has unique number of occurrences. If no such element is present then return false, otherwise true. So if the array is like [1, 1, 2, 2, 2, 3, 4, 4, 4, 4], then it will return true as the element 1 is present two times, 2 is present three times, 3 is present once and 4 is present four times.To solve this, we will follow these steps −We will find the frequency of elements of the arrayfor each key-value pair in the frequency mapif value is present in ... Read More

Rainbow Stream – An Advanced Command-line Twitter Client for Linux

Sharon Christine
Updated on 17-Jan-2020 11:50:44

226 Views

Rainbow Stream is a free and open source Twitter-consumer for Linux command-line, released under MIT License. It is competent of showing Rea ltime tweet stream, compose a tweet, search, favorite, etc.It is written in Python and built on high of Twitter API and Python Twitter Tool. To run this application in your console you must have installed python and pip version 2.7.x or 3.x.FeaturesIt is a free and open source twitter-client for Linux command-line.It is capable of rendering twitter image in Terminal.It supports Proxy.It supports interactive mode.Theme customization is implemented.It has the capability of showing real-time twitter stream.You can tweet, ... Read More

Prime Arrangements in Python

Arnab Chakraborty
Updated on 29-Apr-2020 07:57:12

248 Views

We have to find the number of permutations of 1 to n, so the prime numbers are placed at prime indices. The answers may be large, return the answer modulo 10^9 + 7. So if n = 5, then output will be 12. So there will be 12 permutations. one possible permutation will be [1, 2, 5, 4, 3], one invalid permutation is [5, 2, 3, 4, 1] because 5 is placed at index 1, that is not prime.To solve this, we will follow these steps −Define one method called getNum, as follows −prime := list of all primes from ... Read More

Advertisements