1 Question 8 Let a Hello World The Python statement a1 h will result in

1 question 8 let a hello world the python statement

This preview shows page 2 out of 2 pages.

/1Question 8Let a = "Hello World" The Python statement: a[1] = ‘h’ will result in _________:Selected:a. the string “a” becoming “hello World”This answer is incorrect.b. the string “a” becoming “Hhllo World”c. no change to the stringd. a program exceptionActually, look again. “a[1]” represents the second character in the strings. References to characters in strings are zero-based. See the string example in the string subtopic on Page 1 in Module 2.
0/1Question 9The Python command to concatenate two lists, a and b, is _________:
1/1Question 10The decimal representation for 3.14159e-5 is _________:

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture