Python Code Samples



Filters


Ramya
PYTHON: AWS IAM password reset
Ramya | 5 years, 2 months
import boto3
client = boto3.client('iam')
UserName=input("Enter UserName:")
boto3 python
Get current environment variables in python
kishore_kumar | 6 years, 10 months
import os
env = os.environ

python python-os
gaya38
Shuffle list elements in python
gaya38 | 6 years, 7 months
import random;
z = [1,90,4,2]
z = random.shuffle(z)
python
Use map function in python
kishore_kumar | 6 years, 8 months
def get_double(num):
    return num * 2

python
How to get the list of available files in S3 instead of getting the folders using boto3?
Reshma | 5 years, 5 months
import boto3

client = boto3.client('s3', aws_access_key_id="aws_access_key",
boto3 python list of files in s3
find all numbers in a string using python regular expression
kishore_kumar | 5 years, 9 months
import re

inp_st = "This 1 line has 100 number, 34 and 90s two"
re python string
gaya38
Python sample codes for beginners
gaya38 | 6 years, 8 months
print "Welcome to python"
Basic python programs available in below links which will covers most of the examples of Level 1 pyt
python
gaya38
Python program for prime number check
gaya38 | 6 years, 7 months
a=input("Enter a value:")
k=0
b=(a/2)+1
python
Get records from azure sql table as python dictionary
kishore_kumar | 5 years, 9 months
from contextlib import contextmanager
import datetime

python azure
Django filter and sum query
kishore_kumar | 3 years, 4 months
from django.db.models import Sum

# Model -> Marks
python django django-orm
Prev Next