+1 (315) 557-6473 

Program To Create a Basic Funcions in Python Language Assignment Solution.


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

Program to implement basic funcions in python

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]