subject

Assume choice references a string. The following if statement determines whether choice is equal to ā€˜Yā€™ or ā€˜yā€™: if choice == 'Y' or choice == 'y': Rewrite this statement so it only makes one comparison, and does not use the or operator. (Hint: use either the upper or lower methods.)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
question
Computers and Technology, 25.06.2019 02:30
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
The component of an information system consists of raw facts and by itself
Answers: 1
You know the right answer?
Assume choice references a string. The following if statement determines whether choice is equal to...
Questions
question
Mathematics, 20.12.2020 03:10
question
Physics, 20.12.2020 03:10
question
Physics, 20.12.2020 03:10
question
Chemistry, 20.12.2020 03:10
question
Physics, 20.12.2020 03:10