Python Notes AWS Hindi English
Python Notes AWS Hindi English
x = 10
name = "Cloud"
Example:
my_list = [1, 2, 3]
Example:
if x > 5:
x = 10
name = "Cloud"
Udaharan:
my_list = [1, 2, 3]
my_dict = {"key": "value"}
if x > 5:
2. Functions (English)
def greet(name):
print(greet("AWS"))
2. Functions (Hindi)
def greet(name):
print(greet("AWS"))
print(f.read())
f.write("Hello Cloud")
print(f.read())
import json
parsed = json.loads(data)
print(parsed['key'])
import json
print(parsed['key'])
import boto3
s3 = boto3.client('s3')
import boto3
s3 = boto3.client('s3')
try:
x = 10 / 0
except ZeroDivisionError:
try:
x = 10 / 0
except ZeroDivisionError:
7. Logging (English)
import logging
logging.basicConfig(level=logging.INFO)
7. Logging (Hindi)
import logging
logging.basicConfig(level=logging.INFO)
print(os.getcwd())
import requests
response = requests.get('https://api.example.com')
print(response.json())
import os
print(os.getcwd())
import requests
response = requests.get('https://api.example.com')
print(response.json())