Asks the user to input 10 integers, and then prints the largest odd number
Here are a couple of places you might make your code more concise:

First, lines 2-11 take a lot of space, and you repeat these values again below when you assign list1. You might instead consider trying to combine these lines into one step. A list comprehension might allow you to perform these two actions in one step:

&gt;&gt;&gt; def my_solution():
    numbers = [input('Enter a value: ') for i in range(10)]


A second list comprehension might further narrow down your results by removing even values:

    odds = [y for y in numbers if y % 2 != 0]


You could then see if your list contains any values. If it does not, no odd values were in your list. Otherwise, you could find the max of the values that remain in your list, which should all be odd:

    if odds:
        return max(odds)
    else:
        return 'All declared variables have even values.'


In total, then, you might use the following as a starting point for refining your code:

&gt;&gt;&gt; def my_solution():
        numbers = [input('Enter a value: ') for i in range(10)]
        odds = [y for y in numbers if y % 2 != 0]
        if odds:
            return max(odds)
        else:
            return 'All declared variables have even values.'


&gt;&gt;&gt; my_solution()
Enter a value: 10
Enter a value: 101
Enter a value: 48
Enter a value: 589
Enter a value: 96
Enter a value: 74
Enter a value: 945
Enter a value: 6
Enter a value: 3
Enter a value: 96
945