Answer:
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.
Hi,
JVM - Java Virtual Machine
Hope this helps.
r3t40
Answer:
IBM PC compatible computers are computers similar to the original IBM PC, XT, and AT that are able to use the same software and expansion cards. Such computers were referred to as PC clones, or IBM clones
Answer:
statements = tuple(input("Enter four statements separated by comma: ").split(","))
st1, st2, st3, st4 = statements
#print with:
print(f"{st1}, {st2}, {st3}, {st4}")
# or:
print("{}, {}, {}, {}".format(st1, st2, st3, st4))
Explanation:
The input function in python is used to prompt for user input. It returns a string. The code above splits the string of the input function and converts it to a tuple, which is unpacked in four variables st1, st2, st3, and st4.
The variables can be printed out as strings directly or by using the "f" keyword or the format function.
Local area network is the term