Category Archives: Python Articles

Category for Python Articles

Python | Set 6 (Command Line and Variable Arguments)

Previous Python Articles (Set 1 | Set 2 | Set 3 | Set 4 | Set 5) This article is focused on command line arguments as well as variable arguments (args and kwargs) for the functions in python. Command Line Arguments Till now, we have taken input in python using raw_input() or input() [for integers].… Read More »



See Placement Course for placement preparation, GATE Corner for GATE CS Preparation and Quiz Corner for all Quizzes on GeeksQuiz.

String Formatting in Python using %

In Python a string of required formatting can be achieved by different methods. Some of them are ; 1) Using % 2) Using {} 3) Using Template Strings In this article the formatting using % is discussed. The formatting using % is similar to that of ‘printf’ in C programming language. %d – integer %f… Read More »



See Placement Course for placement preparation, GATE Corner for GATE CS Preparation and Quiz Corner for all Quizzes on GeeksQuiz.

Python | Set 4 (Dictionary, Keywords in Python)

In the previous two articles (Set 2 and Set 3), we discussed the basics of python. In this article, we will learn more about python and feel the power of python.   Dictionary in Python In python, dictionary is similar to hash or maps in other languages. It consists of key value pairs. The value… Read More »



See Placement Course for placement preparation, GATE Corner for GATE CS Preparation and Quiz Corner for all Quizzes on GeeksQuiz.

Python | Set 3 (Strings, Lists, Tuples, Iterations)

In the previous article, we read about basics of Python. Now, we continue with some more python concepts. Strings in Python A string is a sequence of characters. It can be declared in python by using double quotes. Strings are immutable, i.e., they cannot be changed. Lists in Python Lists are one of the most… Read More »



See Placement Course for placement preparation, GATE Corner for GATE CS Preparation and Quiz Corner for all Quizzes on GeeksQuiz.

Python | Set 2 (Variables, Expressions, Conditions and Functions)

Introduction to Python has been dealt with in this article. Now, let us begin with learning python. Running your First Code in Python Python programs are not compiled, rather they are interpreted. Now, let us move to writing a python code and running it. Please make sure that python is installed on the system you… Read More »



See Placement Course for placement preparation, GATE Corner for GATE CS Preparation and Quiz Corner for all Quizzes on GeeksQuiz.