Skip to content

SaurabhG-20/DataScience_Assignment_5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

DataScience_Assignment_5

This repository belongs to problems stated in Assignment 5

Problem Statement

  1. Write a function to compute 5/0 and use try/except to catch the exceptions.

  2. Implement a Python program to generate all sentences where subject is in ["Americans","Indians"] and verb is in ["Play", "watch"] and the object is in ["Baseball","cricket"].

    Hint: Subject,Verb and Object should be declared in the program as shown below. subjects=["Americans ","Indians"] verbs=["play","watch"] objects=["Baseball","Cricket"]

Output should come as below:

Americans play Baseball. Americans play Cricket. Americans watch Baseball. Americans watch Cricket. Indians play Baseball. Indians play Cricket. Indians watch Baseball. Indians watch Cricket.

Note :

  1. Please refer Screenshot directory for output of Screenshot
  2. Please refer Sourcecode directory for Pyhton Sourcecode file

About

This repository belongs to problems stated in Assignment 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published