[it automatically detects it as a string`
this is the error
input_msg = input('enter message:-')
^
SyntaxError: invalid syntax`]
this is my code
import time
from cryptography.fernet import Fernet
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
password_provided = "password"
password = password_provided.encode()
salt = b'salt_'
kdf = PBKDF2HMAC(
algorithm=hashes.SHA256(),
length=32,
salt=salt,
iterations=100000,
backend=default_backend()
)
key = base64.urlsafe_b64encode(kdf.derive(password)
input_msg = input('enter message:-')
message = input_msg.encode()
time.sleep(15)
f = Fernet(key)
code = f.encrypt(message)
print(message)
i am using vs code and my python version is 3.7 i am unable to use input func and it automatically tells me that my variable is a string as the above image