## Learning Goal: I’m working on a python practice test / quiz and need an explanat

Learning Goal: I’m working on a python practice test / quiz and need an explanation and answer to help me learn.
Please find the attached requirements file.

## Learning Goal: I’m working on a python test / quiz prep and need an explanation

Learning Goal: I’m working on a python test / quiz prep and need an explanation and answer to help me learn.
I’ve attached here the requirements with the template solution file.

## Learning Goal: I’m working on a python exercise and need a sample draft to help

Learning Goal: I’m working on a python exercise and need a sample draft to help me learn.
Please follow the pdf document to finish this practical

## Q.1) Assignment – Sorting AlgorithmWhen we (humans) look at a set of objects, we

Q.1) Assignment – Sorting AlgorithmWhen we (humans) look at a set of objects, we tend towards brute force sorting and search.Find a C++, Python or Java the performs Brute Force sorting. What is the Big O of this algorithm?** State your source. Q.2) When we (humans) look at a set of objects, we tend towards brute force sorting and search. What is brute force? Can an algorithm be written to perform brute force sorting? Give an example.NOTE: APA Format. state all sources.
Requirements: 1000

## Describe in pseudocode how you would implement a graph that describes the links

Describe in pseudocode how you would implement a graph that describes the links between pages on the Internet.

## Learning Goal: I’m working on a python question and need guidance to help me lea

Learning Goal: I’m working on a python question and need guidance to help me learn.
Please fix my code to get the correct average; see screenshots below
code: import random
# function create a new deck of 52 cards and returns the list of cards
def get_new_deck():
faceValues = [‘ace’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’,
‘7’, ‘8’, ‘9’, ’10’, ‘jack’,
‘queen’, ‘king’]
suits = [‘clubs’, ‘diamonds’, ‘hearts’,
cards = []
for face in faceValues:
for suit in suits:
cards.append(face + suit)
return cards
# function returns the number of rounds played in a single game
# function accepts the initial amount
def get_total_rounds(amount):
double_amount = amount * 2
round_played = 0
deck = get_new_deck() # get a new deck of cards
while 0 < amount < double_amount:
round_played+=1
random.shuffle(deck) # shuffles the deck of cards
drawn_card = deck[0:6] # draws 6 cards
# find the face values for all the above 6 cards
face_values = [card for card in drawn_card]
# check for ace
if 'A' in face_values:
amount+=1 # increment by 1
else:
amount-=1 # decrement by 1
return round_played # returns the number of rounds played
def main():
initial_amount = float(input('Enter initial amount: '))
total_rounds = 0 # total rounds played in 1000 games
# play 1000 games
for test in range(1000):
rounds = get_total_rounds(initial_amount)
total_rounds += rounds
average = total_rounds / 1000 # calculate average
print('Average number of rounds:', average) # print the average
main()
CARDs.py
import random
faceValues = ['ace', '2', '3', '4', '5', '6',
'7', '8', '9', '10', 'jack',
'queen', 'king']
suits = ['clubs', 'diamonds', 'hearts',
def shuffledDeck():
deck = []
for faceValue in faceValues:
for suit in suits:
deck.append(faceValue + ' of ' + suit)
random.shuffle(deck)
return deck
def faceValueOf(card):
return card.split()
def suitOf(card):
return card.split()

## Learning Goal: I’m working on a python question and need guidance to help me lea

Learning Goal: I’m working on a python question and need guidance to help me learn.
Solve the problem in the screen shot
card.py code
import random
faceValues = [‘ace’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’,
‘7’, ‘8’, ‘9’, ’10’, ‘jack’,
‘queen’, ‘king’]
suits = [‘clubs’, ‘diamonds’, ‘hearts’,
def shuffledDeck():
deck = []
for faceValue in faceValues:
for suit in suits:
deck.append(faceValue + ‘ of ‘ + suit)
random.shuffle(deck)
return deck
def faceValueOf(card):
return card.split()
def suitOf(card):
return card.split()
My code
import cards
# input the initial amount for the game
initialAmount = float(input(“Enter initial amount: “))
# initialize total number of rounds for 1000 trials to 0
totalRounds = 0
# loop 1000 times
for n in range(1000):
# initialize the number of rounds needed for ith trial to 0
rounds = 0
# set amount to initialAmount
amount = initialAmount
# loop that continues until the round is over i.e the user runs out of money or doubles the initial amount
while amount > 0 and amount < 4.865*initialAmount:
rounds += 1 # increment number of rounds by 1
aceFound = False # set aceFound to false
# get a shuffled deck of cards
deck = cards.shuffledDeck()
# loop to deal 6 cards from the shuffled deck
for i in range(6):
faceValue = cards.faceValueOf(deck) # get the first card of deck and get its face value
if faceValue == "ace": # this is an ace, set aceFound to true and exit the inner for loop
aceFound = True
break
deck.pop(0) # remove the first card from deck
# if ace was found in one of the 6 cards dealt, increment amount by 1
if aceFound:
amount += 1
else: # else decrement amount by 1
amount -= 1
totalRounds += rounds # add number of rounds played to totalRounds
# determine and display the average number of rounds by dividing total rounds by 1000
print("Average number of rounds: {:.3f}".format(totalRounds/1000))
# end of test4.py

## Now that you have completed the first five modules and Project One, take some ti

Now that you have completed the first five modules and Project One, take some time to reflect on what you have learned and discuss your learning with your peers. Be sure to address at least two of the following questions:
What was the most interesting thing you learned in the modules or created for the project?
What concepts do you feel are unclear or do you need more practice applying?
What are you most excited to learn next?
How did you overcome any roadblocks you encountered while going through the activities or project?

## Learning Goal: I’m working on a python question and need guidance to help me lea

Learning Goal: I’m working on a python question and need guidance to help me learn.
Please fix my code to get the correct average; see screenshots below
code: import random
# function create a new deck of 52 cards and returns the list of cards
def get_new_deck():
faceValues = [‘ace’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’,
‘7’, ‘8’, ‘9’, ’10’, ‘jack’,
‘queen’, ‘king’]
suits = [‘clubs’, ‘diamonds’, ‘hearts’,
cards = []
for face in faceValues:
for suit in suits:
cards.append(face + suit)
return cards
# function returns the number of rounds played in a single game
# function accepts the initial amount
def get_total_rounds(amount):
double_amount = amount * 2
round_played = 0
deck = get_new_deck() # get a new deck of cards
while 0 < amount < double_amount:
round_played+=1
random.shuffle(deck) # shuffles the deck of cards
drawn_card = deck[0:6] # draws 6 cards
# find the face values for all the above 6 cards
face_values = [card for card in drawn_card]
# check for ace
if 'A' in face_values:
amount+=1 # increment by 1
else:
amount-=1 # decrement by 1
return round_played # returns the number of rounds played
def main():
initial_amount = float(input('Enter initial amount: '))
total_rounds = 0 # total rounds played in 1000 games
# play 1000 games
for test in range(1000):
rounds = get_total_rounds(initial_amount)
total_rounds += rounds
average = total_rounds / 1000 # calculate average
print('Average number of rounds:', average) # print the average
main()
CARDs.py
import random
faceValues = ['ace', '2', '3', '4', '5', '6',
'7', '8', '9', '10', 'jack',
'queen', 'king']
suits = ['clubs', 'diamonds', 'hearts',
def shuffledDeck():
deck = []
for faceValue in faceValues:
for suit in suits:
deck.append(faceValue + ' of ' + suit)
random.shuffle(deck)
return deck
def faceValueOf(card):
return card.split()
def suitOf(card):
return card.split()

## Learning Goal: I’m working on a python question and need guidance to help me lea

Learning Goal: I’m working on a python question and need guidance to help me learn.
Solve the problem in the screen shot
card.py code
import random
faceValues = [‘ace’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’,
‘7’, ‘8’, ‘9’, ’10’, ‘jack’,
‘queen’, ‘king’]
suits = [‘clubs’, ‘diamonds’, ‘hearts’,
def shuffledDeck():
deck = []
for faceValue in faceValues:
for suit in suits:
deck.append(faceValue + ‘ of ‘ + suit)
random.shuffle(deck)
return deck
def faceValueOf(card):
return card.split()
def suitOf(card):
return card.split()
My code
import cards
# input the initial amount for the game
initialAmount = float(input(“Enter initial amount: “))
# initialize total number of rounds for 1000 trials to 0
totalRounds = 0
# loop 1000 times
for n in range(1000):
# initialize the number of rounds needed for ith trial to 0
rounds = 0
# set amount to initialAmount
amount = initialAmount
# loop that continues until the round is over i.e the user runs out of money or doubles the initial amount
while amount > 0 and amount < 4.865*initialAmount:
rounds += 1 # increment number of rounds by 1
aceFound = False # set aceFound to false
# get a shuffled deck of cards
deck = cards.shuffledDeck()
# loop to deal 6 cards from the shuffled deck
for i in range(6):
faceValue = cards.faceValueOf(deck) # get the first card of deck and get its face value
if faceValue == "ace": # this is an ace, set aceFound to true and exit the inner for loop
aceFound = True
break
deck.pop(0) # remove the first card from deck
# if ace was found in one of the 6 cards dealt, increment amount by 1
if aceFound:
amount += 1
else: # else decrement amount by 1
amount -= 1
totalRounds += rounds # add number of rounds played to totalRounds
# determine and display the average number of rounds by dividing total rounds by 1000
print("Average number of rounds: {:.3f}".format(totalRounds/1000))
# end of test4.py