Instructions
Objective
Write a python assignment program to create basic functions in the Python language. This assignment aims to help you practice your coding skills and understand the fundamentals of function creation in Python. By completing this assignment, you will gain hands-on experience in defining and using functions to perform specific tasks within your code.
Requirements and Specifications
Source Code and Solution
#include
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 18 20:12:05 2021
@author: rhoover
"""
from random import seed
from random import randint
PhraseList = ["A Vase Of Flowers",
"American Beauty",
"A Beautiful Life Jacket",
"A Dip In The Pool",
"A Word Search",
"Baby Ruth Candy Bar",
"Alcatraz Island",
"Act Your Age Before Beauty",
"Bow Tie Score",
"Bill Clinton Is Impeached"]
CatList = ["Around the House",
"Classic Movie",
"Before and After",
"Fun and Games",
"Fun and Games",
"Food and Drink",
"On the Map",
"Before and After",
"Before and After",
"Headline"]
Wheel = [-1,800,500,650,500,900,-2,5000,500,600,700,600,650,500,700,500,600,550,
500,600,-2,650,600,700]
def GeneratePhrase():
seed(None)
val = randint(0,9)
return PhraseList[val],CatList[val]
Similar Samples
Dive into our curated selection of programming homework samples at ProgrammingHomeworkHelp.com. Whether you're exploring Python, Java, Assembly, or Web Development, our examples offer practical insights and solutions. Designed to assist students and professionals alike, each sample showcases effective coding techniques and problem-solving strategies. Explore our diverse range of samples to bolster your understanding and excel in your programming endeavors.
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python
Python