This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| number = int(input("please enter a number: ")) | |
| FizzBuzz = False | |
| while not FizzBuzz: | |
| number = int(input("please enter a number: ")) | |
| num = number | |
| if num % 3 == 0 and num % 5 == 0: | |
| FizzBuzz = True | |
| print("FizzBuzz") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First we need to import our libraries needed for this demo | |
| from bs4 import BeautifulSoup | |
| import requests | |
| import pandas as pd | |
| #here we are requesting the webiste and storing it in a variable | |
| url = "https://pogotrainer.club//" | |
| results = requests.get(url) | |
| results.raise_for_status() #this will print in error should there be an issue with the website |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .terraform* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| backend "s3" { | |
| bucket = "ditf-s3-storage" | |
| encrypt = true | |
| key = "terraform.tfstate" | |
| region = "us-east-1" | |
| } | |
| } | |
| provider "aws" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import the random module | |
| import random | |
| #create a variable for the random number | |
| number = random.randint(0, 100) | |
| end_of_game = False #as log as this is false the While loop will continue to loop until the conditions are met. | |
| while not end_of_game: | |
| user_input = int(input("Guess the random number: ")) #create a variable that allows user input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.27" | |
| } | |
| } | |
| required_version = ">= 0.14.9" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.27" | |
| } | |
| } | |
| required_version = ">= 0.14.9" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.27" | |
| } | |
| } | |
| required_version = ">= 0.14.9" | |
| } | |
| provider "aws" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #time to launch our AWS resources beginning with the vpc | |
| resource "aws_vpc" "wk_20" { | |
| cidr_block = var.cidr_block | |
| instance_tenancy = "default" | |
| tags = { | |
| Name = "wk_20" | |
| } | |
| } |