from typing import List

"""
CSC120 Fall 2018 - Exercise 4
This file contains the functions for E4.
Note: Do NOT leave any print statements in
this file when you submit it.
"""

def list_duplicates(L: List[int]) -> bool:
    """Return True iff L contains at least two adjacent duplicate integers.
    The duplicate values must be beside each other in the list.
    
    Hint: you can use a for loop and iterate over the index numbers using range.
    
    >>> list_duplicates([1,2,3,2])
    False
    >>> list_duplicates([1,2,2,3,4])
    True
    """
    # Add your code here
    


def digit_string_odd(L: List[int]) -> str:
    """Return a string that contains the digits in L up to (but not including)
    the first even digit.
    
    Use a while loop with appropriate conditions.
    
    >>> digit_string_odd([1,2,3,4,5])
    '1'
    >>> digit_string_odd([1,3,3,4,5])
    '133'
    """
    # Add your code here
    
    

def two_conditions(s: str) -> int:
    """Return the first index of s which is a digit, as long as an uppercase 
    letter had appeared before getting to this index.
    Return -1 if no index satisfies both conditions.
    
    Use a while loop with appropriate conditions.  
    Consider creating a variable that can tell you if 
    you've seen an uppercase letter yet.
    
    >>> two_conditions('aB1cd')
    2
    >>> two_conditions('ab1cd')
    -1
    >>> two_conditions('Hello7')
    5
    >>> two_conditions('abcd')
    -1
    """
    # Add your code here
    
    
