Python Code Samples



Filters


gaya38
generate fibonacci series in python
gaya38 | 6 years, 2 months
n=input("Enter the constraint to print no of fibanocci values:")
m=input("Enter the maximum value t
python
Ramya
Removing IAM Users from IAM group
Ramya | 5 years, 7 months
def remove_user():
    import boto3
    client = boto3.client('iam')
boto3 aws python
Get records from azure sql table as python dictionary
kishore_kumar | 5 years, 3 months
from contextlib import contextmanager
import datetime

python azure
gaya38
Pass command line arguments in python
gaya38 | 6 years, 2 months
import sys
x=len(sys.argv)
a=[]
python
gaya38
Python program for even number checking
gaya38 | 6 years, 2 months
a=input("Enter a value:")
if (a%2==0):
    print "The given number is even number"
python
Find min , max and mean for numpy arrays
kishore_kumar | 6 years, 2 months
import numpy as np

random_arr = np.random.randint(1,50,9)
python numpy
get all meta tags content from a url using python
kishore_kumar | 5 years, 9 months
#This can be done using BeautifulSoup package
import requests
from bs4 import BeautifulSoup
python bs4 beautifulsoup
Ramya
Finding usage of the file system in linux using python
Ramya | 4 years, 11 months
import subprocess
threshold = input("Enter the threshold value:")
child = subprocess.Popen(['df','
python linux subprocess
gaya38
print list of even numbers within a range
gaya38 | 6 years, 2 months
n=100
a=[10,20,30,40,50]
b=[60,70,80,90]
python
Rename columns in pandas python dataframe
kishore_kumar | 4 years, 1 month
import pandas as pd

data = [['Alex',10],['Bob',12],['Clarke',13]]
python pandas
Prev Next