Write an expression whose value is the same as the str


PYTHON PLEASE

1) Write an expression whose value is the same as the str associated with s but with reversed case. Thus, if the str associated with s is "McGraw", the value of the expression would be "mCgRAW".

2) Assume that month is an int variable whose value is 1 or 2 or 3 or 5 ... or 11 or 12. Write an expression whose value is "jan" or "feb" or "mar" or "apr" or "may" or "jun" or "jul" or "aug" or "sep" or "oct" or "nov" or "dec" based on the value of month. (So, if the value of month were 4 then the value of the expression would be "apr".).

3) Given the strings s1 and s2 that are of the same length, create a new string consisting of the first character of s1 followed by the first character of s2, followed by the second character of s1, followed by the second character of s2, and so on (in other words the new string should consist of alternating characters of s1 and s2).

For example, if s1 contained "hello" and s2 contained "world", then the new string should contain "hweolrllod". Associate the new string with the variable s3.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write an expression whose value is the same as the str
Reference No:- TGS02906297

Expected delivery within 24 Hours