Question: Code the following using python idle and be sure not to use the constructs in the prohibited list unless specified in the question. Do not
Code the following using python idle and be sure not to use the constructs in the prohibited list unless specified in the question. Do not use append, int, or built in max() function.
1. read the file and create a list (lst1) of words - use split( )
2. create a new list (lst2) from first list of integers - use int( ) to convert to integers
3. find max from lst2 without using built-in max( ) function

Assume that the input file will contain numerous integers randomly spaced, on multiple lines like as follows:
34 23 53 22 454 223 222 33 2 333 4 2 100
directions. Using the following constructs will result in 0 (zero) for the entire submission (assignment, timed test, etc.). The restricted items are as follows: - Concepts not discussed in lectures yet - String functions - Member functions - Exceptions (can use) : /en () and x=x+[y1,y2,y3] - Built-in functions \& types - Exceptions (can use): str( ), readline( ), open(), close( ), write(), read(), range( ), .split() - Cannot use .append, .sort, etc. - Cannot use "Slicing" - Cannot use "list comprehension" - Cannot use "not in" (together) - Cannot use "in" - not allowed with conditionals - Exception (can use): with range () - Cannot use and \{\} - Exception (can use): mathematical operations (multiply \& exponents) - Data type functions - Exceptions (can use): int (), str (), float () - Break - Continue - Nested Constructs - Exceptions (can use): 2-D list - Multiple returns \& Multiple assignments - Recursion (not allowed unless the question explicitly states otherwise) - Functions within functions (Definitions) -- invocation is fine - Default Parameters - Global variables - Keyword as variable names
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
