I have a variable called method, it's value is POST but when I try to run print(f"{method} method is used.") it keeps giving a syntax error at the last double quote and I can't find the reason on why it does this. I am using python 3.5.2.
            Asked
            
        
        
            Active
            
        
            Viewed 8,772 times
        
    3
            
            
         
    
    
        PlanetTeamSpeak
        
- 33
- 1
- 4
- 
                    This line is fine. The syntax error is most likely caused by a previous line, but Python is only detecting it on this line. Can you post the full code? – Al Sweigart Mar 25 '17 at 02:40
1 Answers
12
            F-strings were a new feature introduced in Python 3.6, so of course they're not going to work in 3.5.2.
 
    
    
        jasonharper
        
- 9,450
- 2
- 18
- 42