0 of 6 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 6 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
What of the following is a conditional statement?
What is the data type of x
?
x = "Hello world!"
Provided the following code, what is the output:
number = 3 string_1 = "I have " string_2 = " apples." print(string_1+number+string_2)
The following code and user input will result in an error, why?
num = int(input("Input a number! :"))
Input a number!: three
Provided the following code, what is the output:
word = "Rits" for char in word: print(char+".")
How would you open text.txt, if you would only want to read the file?