Article Outline
Example Python program Telusko_Python_Training.py Python version 3.x or newer. To check the Python version use:
python --version
Modules
- from math import sqrt
- from array import *
Code
Python example
from math import sqrt
from array import *
# fabbinoci series
"""i = 0
j = 1
z = 0
for z in range(0,13):
if i == 0:
print(i, end=" ")
if j == 1:
print(j, end=" ")
z = i+j
i,j = j,z
print(z, end=" ")"""
#1234
# 234
# 34
# 4
"""for q in range(1,5):
for w in range(q,5):
print(w, end="")
print() """
"""l = int(input("Enter the length of the Array : "))
arr = array('i', [])
for a in range(l):
x = int(input("Enter the next value : "))
arr.append(x)
val = len(arr)
arr2 = array('i', [])
e = 0
while val > e:
a = arr[val-1]
arr2.append(a)
print(arr2.index(val))
val -= 1
print(arr2)"""
print("Hello: "+__name__)
Useful Links
- Articles: https://python-commandments.org/
- Python shell: https://bsdnerds.org/learn-python/
- Tutorial: https://pythonprogramminglanguage.com/