multiple conditions to a if loop python
<p>Hello I'm having some problems with some code I am writing for a school and its not working. It wont run through the whole loop but all the code looks right to me. Does anyone have any ideas?</p>

<pre><code>   User_Input = input ( "Please enter a message that is no longer than 7 characters." )
    User_Input_Length = len ( User_Input )  
    if     {  User_Input_Length &gt;= 7 
         and  User_Input_Length == 1
    }:
    print ( "Your message is odd." )
    elif   {  User_Input_Length &gt;= 7
         and  User_Input_Length == 3
    }:
    print ( "Your message is odd." )
    elif   {  User_Input_Legnth &gt;= 7
         and  User_Input_Length == 5
    }:
    print ( "Your message is odd." )
    elif   {  User_Input_Length &gt;= 7
         and  User_Input_Length == 7
    }:
    print ( "Your message is odd" )
    elif   {  User_Input_Length &gt;= 7
         and  User_Input_Length == 2
    }:
    print ( "Your message is even" )
    elif   {  User_Input_Length &gt;= 7
         and  User_Input_Length == 4
    }:
    print ( "Your message is even" )
    elif   {  User_Input_Length &gt;= 7   
         and  User_Input_Length == 6
    }:
    print ( "Your string is even" )
    else:
    print ( "The string is too long." )
    print ( "Goodbye" )
</code></pre>

<p>you must use parentheses for the parameters of the <code>if</code> condition, and be careful about the placement of your code blocks: unlike C which uses <code>;</code> as a delimiter, python knows your block is over only because it jumps to the next line.</p>

<pre><code>if(1 &lt; 2) and (2 &lt; 3):
    print("true")
elif(1 &gt; 2):
    print("false")
</code></pre>

python