The second time, hi is in quotes. So it is a string literal. It is not a variable. Specifically, it is not the value of the iterator.
More Related Contents:
- What does a b prefix before a python string mean?
- Python Script returns unintended “None” after execution of a function [duplicate]
- Python “raise from” usage
- Python print statement “Syntax Error: invalid syntax” [duplicate]
- How to tell if a string contains valid Python code
- Why am getting an "elif" syntax error showing invalid syntax in python [closed]
- Source Code is the output in Python [closed]
- Accessing class variables from a list comprehension in the class definition
- Python 3: UnboundLocalError: local variable referenced before assignment [duplicate]
- Should I put #! (shebang) in Python scripts, and what form should it take?
- Priority of the logical operators NOT, AND, OR in Python
- List attributes of an object [duplicate]
- Unable to set default python version to python3 in ubuntu
- How to uninstall a package installed with pip install –user
- Why np.hypot and np.subtract.outer very fast compared to vanilla broadcast ? Using Numba for speedup numpy in parallel for distance matrix calculation
- How to display an image after a time interval?
- What does *tuple and **dict mean in Python? [duplicate]
- How to change UI in same window using PyQt5?
- Creating an Ordered Counter
- Why do parentheses in a lambda function cause syntax error on Python 3? [duplicate]
- list comprehension filtering – “the set() trap”
- Sort a list of tuples depending on two elements [duplicate]
- Read .csv file from URL into Python 3.x – _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
- How to find cube root using Python? [duplicate]
- When using cx_Freeze and tkinter I get: “DLL load failed: The specified module could not be found.” (Python 3.5.3)
- How do you change the value of one attribute by changing the value of another? (dependent attributes)
- Why do Tkinter’s Radio Buttons all Start Selected When Using StringVar but not IntVar?
- Python: How to read and load an excel file from AWS S3?
- How to convert string representation of dictionary in Pandas DataFrame to a new columns?
- name ‘times’ is used prior to global declaration – But IT IS declared