Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python : Write Python Expressions corresponding to these statements : (b) The wo

ID: 3782782 • Letter: P

Question

Python : Write Python Expressions corresponding to these statements : (b) The word "misinterpretation" appears earlier in the dictionary than the word "misrepresentation" (c) The letter "e" does not appear in the word "floccinaucinihilipilification" (d) The number of characters in the word "counterrevolution" is equal to the sum of the number of characters in words "counter" and "resolution" Write the corresponding Python assignment statements: (a) Assign 6 to variable a and 7 to variable b (b) assign to variable c the average of cariables a and b (c) Assign to variable inventory the list containing strings 'paper' 'staples' and 'pencils' (d) Assign to variables first, middle, and last the strings 'John', 'Fitzgerald' and 'Kennedy' (e) Assign to variable fullname the concatenation of string variables first,middle, and last. Make sure you incorporate blank spaces appropriately.

Explanation / Answer

program.py ------

print("The word "misinterpretation" appears earlier in the dictionary than the word
"misrepresentation"")

print("")

print("The letter "e" does not appear in the word "floccinaucinihilipilification"")

print("")

print("The number of characters in the word "counterrevolution" is equal to the sum of the
number of characters in words "counter" and "resolution" ")

print("")

a,b = float(6) , float(7)

c = ((a+b) / 2)

inventory = ['paper' , 'staples' , 'pencils']

first = 'John'

middle = 'Fitzgerald'

last = 'Kennedy'

fullname = first + " " + middle + " " + last