Answers for "python unsupported operand type(s) for & 'str' and 'str'"

9

python unsupported operand type(s) for /: 'str' and 'str'

# Error:
TypeError: unsupported operand type(s) for /: 'str' and 'str'
    
# Solution:
# You're probably mixing strings and integers. Make sure to either 
# convert integers to strings with str(int) or strings to integers/floats
# with int(string) or float(string) depending on what you're doing.
Posted by: Guest on September-09-2020
1

python unsupported operand type(s) for & 'str' and 'str'

# use and in stead of & in python
Posted by: Guest on November-19-2020
0

python unsupported operand type(s) for & 'str' and 'str'

var1 = input("please inter your temp:")
var2 = input ("do you have a green pass:")
if var1<37
  print ("you may pass")
Posted by: Guest on April-07-2021

Code answers related to "python unsupported operand type(s) for & 'str' and 'str'"

Python Answers by Framework

Browse Popular Code Answers by Language