Email as an input - how to visualize the @?

Hi everyone,

This is probably a silly question, but I have troubles with it.

I am trying to allow my users to visualize what they are typing.
I need to ask them to type down their emails and I’m having a problem with visualizing the at sign: @

I tried

1
2
if ‘@’ in keys:
…email.text = email.text+ ‘@’

and

1
2
if ‘At’ in keys:
…email.text = email.text+ ‘@’

but it is not working…

What exactly do you mean by “visualize” in this context? The code snippets look like you’re just trying to append an @ sign to the end of a string. It might also be helpful if you could explain where the “keys” variable comes from.

1 Like