Ask Question
7 May, 00:51

Write a series of conditional tests. Print a statement describing each test and your prediction for the results of each test. For example, your code may look something like this:car = 'subaru'print ("Is car = = 'subaru'? I predict True.") print (car = = 'subaru') print ("/nIs car = = 'audi'? I predict False.") print (car = = 'audi') Create at least 4 tests. Have at least 2 tests evaluate to True and another 2 tests evaluate to False.

+1
Answers (1)
  1. 7 May, 03:18
    0
    this:name = 'John'

    print ("Is name = = 'John'? I predict True.")

    print (name = = 'John')

    print ("/nIs name = = 'Joy'? I predict False.")

    print (car = = 'Joy')

    this:age = '28'

    print ("Is age = = '28'? I predict True.")

    print (age = = '28')

    print ("/nIs age = = '27'? I predict False.")

    print (age = = '27')

    this:sex = 'Male'

    print ("Is sex = = 'Female'? I predict True.")

    print (sex = = 'Female')

    print ("/nIs sex = = 'Female'? I predict False.")

    print (sex = = 'Joy')

    this:level = 'College'

    print ("Is level = = 'High School'? I predict True.")

    print (level = = 'High School')

    print ("/nIs level = = 'College'? I predict False.")

    print (age = = 'College')

    Conditions 1 and 2 test for name and age

    Both conditions are true

    Hence, true values are returned

    Conditions 3 and 4 tests for sex and level

    Both conditions are false

    Hence, false values are returned.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a series of conditional tests. Print a statement describing each test and your prediction for the results of each test. For example, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers