diff --git a/README.md b/README.md index b4f9c2e..1f077f1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1 @@ - -asli - - - +# python-app diff --git a/deneme11 b/deneme11 index b175a37..3fa9655 100644 --- a/deneme11 +++ b/deneme11 @@ -1 +1,2 @@ +yeniden dene sadece deneme diff --git a/leap-year.py b/leap-year.py index 7509825..99eb8d6 100644 --- a/leap-year.py +++ b/leap-year.py @@ -1,7 +1,5 @@ Umut çalışıyor... - - # **Exercise | ?comprehension | ?range() | ?len() | ?nested for loop() | ?any() | ?sum() | ?append()** # 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. # What is the smallest positive number which is evenly divisible by all of the numbers from 1 to 20? diff --git a/s3cb.py b/s3cb.py new file mode 100644 index 0000000..b9810f3 --- /dev/null +++ b/s3cb.py @@ -0,0 +1,11 @@ +import boto3 + +# Use Amazon S3 +s3 = boto3.resource('s3') + +# Create a new bucket +s3.create_bucket(Bucket='toucan-boto3-bucket') + +# Print out all bucket names +for bucket in s3.buckets.all(): + print(bucket.name) \ No newline at end of file diff --git a/s3lis.py b/s3lis.py new file mode 100644 index 0000000..93edddd --- /dev/null +++ b/s3lis.py @@ -0,0 +1,8 @@ +import boto3 + +# Use Amazon S3 +s3 = boto3.resource('s3') + +# Print out all bucket names +for bucket in s3.buckets.all(): + print(bucket.name) \ No newline at end of file diff --git a/s3put.py b/s3put.py new file mode 100644 index 0000000..3353b57 --- /dev/null +++ b/s3put.py @@ -0,0 +1,8 @@ +import boto3 + +# Use Amazon S3 +s3 = boto3.resource('s3') + +# Upload a new file +data = open('test.txt', 'rb') +s3.Bucket('toucan-boto3-bucket').put_object(Key='test.txt', Body=data) \ No newline at end of file diff --git a/tex.txt b/tex.txt new file mode 100644 index 0000000..3353b57 --- /dev/null +++ b/tex.txt @@ -0,0 +1,8 @@ +import boto3 + +# Use Amazon S3 +s3 = boto3.resource('s3') + +# Upload a new file +data = open('test.txt', 'rb') +s3.Bucket('toucan-boto3-bucket').put_object(Key='test.txt', Body=data) \ No newline at end of file