Arrays in Python
Today we will look how to define and use arrays in python. To understand this, lets have a look at a program. Using Arrays in Python user@ngelinux:python$ cat sixth.py #!/usr/bin/python...
Today we will look how to define and use arrays in python. To understand this, lets have a look at a program. Using Arrays in Python user@ngelinux:python$ cat sixth.py #!/usr/bin/python...
Till now we have learned how to use variables, how to run a python script, and other small things. Suppose you want to compare if a is equal to b...
In this post, we will look how to do integer calculation in python. As we know there is no explicit declaration of variables required, hence we can do the calculation...
I got below error message when executing my python script. user@ngelinux$ ./fourth.py 5 5.199 Traceback (most recent call last): File "./fourth.py", line 13, in print(mystring) NameError: name 'mystring' is not...
In this post we will how to declare different type of variables in python. Using Numbers: Integers and float & Strings in Python Lets have a look how to...
In the last post, we have created “hello world” program and executed it from command line using python command. Here we will check usage of shebang sequence followed by the...
In the first post, we have checked how to view python version available on our system. From this post, we will start learning python programming. The first ever thing we...
I have started learning python and hence preferred to keep the learning track updated here. This is the reason you will see number in the heading. Following numbers sequentially you...
In this post, we will look how to get a specific line or a range of lines’ output from a file in linux. We will look at these options step...
Till now we have seen how to create a python script file and execute it. In this post, we will look how to include comments in the script and how...