Question: SISO Python programs Write a SISO program to perform the following computations. Please simply write your program source code in your write-up, instead of submitting
SISO Python programs
Write a SISO program to perform the following computations. Please simply write your program source code in your write-up, instead of submitting separate .py files. Make sure your programs are String In String Out (they take in a single string parameter and return a single string value). Hint: make sure to run your programs with a few inputs to ensure they are correct! a. Take in an integer and double it. b. Take in a list of integers (choose a string encoding of your choice) and add up all the numbers that are even and subtract all the numbers that are odd. c. Take in a list of string words (choose a string encoding of your choice) and output the unique ones, sorted alphabetically. Example showing in Python list format because its up to you decide on your string encoding: [banana, apple, banana, orange, coconut, coconut] [apple, banana, coconut, orange]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
