Ask Question
16 August, 16:28

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.

+2
Answers (1)
  1. 16 August, 17:47
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers