Python Forum
Symbol identification in variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Symbol identification in variables
#1
I am a student working on a password checking program, I need help with identifiying if a variable has symbols ("~`!@#$%^&*()_-+={}[]:>;',</?*-+") and add a score to the variable (Score).
Reply
#2
Hi, you could get in touch with your classmate working on same issue and brainstorm it together! It's a great learning strategy.
https://python-forum.io/Thread-Symbols-i...2#pid14242
Reply
#3
(Apr-05-2017, 09:41 AM)Ollie Wrote: I am a student working on a password checking program, I need help with identifiying if a variable has symbols ("~`!@#$%^&*()_-+={}[]:>;',</?*-+") and add a score to the variable (Score).
symbols = "~`!@#$%^&*()/_-+={}[]:>;',</?*-+"

contains_symbol = False
for symbols in symbols:
if symbols in pw1:
contains_symbol = True
Score+=10
break
print(contains_symbol)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Decryption not working if key has same symbol like text Paragoon2 0 333 Nov-11-2023, 09:32 PM
Last Post: Paragoon2
  Convert Excel file into csv with Pipe symbol.. mg24 4 1,369 Oct-18-2022, 02:59 PM
Last Post: Larz60+
  ImportError: /home/pybind11_example.cpython-37m-x86_64-linux-gnu.so: undefined symbol chaitra 2 5,154 Feb-03-2021, 05:14 AM
Last Post: chaitra
  List Identification Tbot1000 2 1,750 Aug-28-2020, 12:08 PM
Last Post: Tbot1000
  Take particular symbol from textbox help samuelbachorik 3 2,187 Apr-14-2020, 03:55 AM
Last Post: steve_shambles
  Hide symbol or characters in regular expression Gateux 0 2,288 Mar-21-2020, 10:25 AM
Last Post: Gateux
  loop through range until reach size and exclude specific symbol pino88 3 2,411 Sep-23-2019, 02:32 AM
Last Post: perfringo
  Optimisation problem - star identification pberrett 1 2,278 Apr-01-2019, 12:17 AM
Last Post: scidam
  "³" math cube symbol encoding Ragnar 5 9,682 Mar-09-2018, 04:23 PM
Last Post: Gribouillis
  help with showing wifi symbol when connected bowen73 8 6,311 Aug-03-2017, 01:57 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020