Computer Science
You have the following code segment :
String1 = "my"
String2 = "work"
print(String1+String2.upper())
What is the output of this code?
- mywork
- MY Work
- myWORK
- My Work
Related Questions
Which two lines of code are valid strings in Python ?
- This is a string
- 'This is a string'
- (This is a string)
- "This is a string"
You have the following code segment :
String1 = "my" String2 = "work" print(String1 + String2)
What is the output of this code?
- my work
- work
- mywork
- my
Which line of code produces an error ?
- "one" + 'two'
- 1 + 2
- "one" + "2"
- '1' + 2
What is the output of this code ?
>>> int("3" + "4")
- "7"
- "34"
- 34
- 24