Skip to main content

script che controlla se ci sono simboli in una stringa

Project description

Realizzato da Biagio Costigliola alias h4rck4n0

script che controlla se ci sono simboli nella stringa

  • .isSymbols True se nella stringa trova almeno 1 simbolo

  • .isonlySybols True se la stringa è composta solo da simboli

  • myStringa è la class che passiamo la stringa da lavorare

  • sintassi: print(myStringa("lanostrastringa").isSymbols)

  • ci stampa True se nella stringa è presente almeno un simbolo

  • sintassi: print(myStringa("lanostrastringa").isonlySybols)

  • ci stampa True se nella stringa contiene solamente simboli

.isSymbols

  • print(myStringa("Hello+").isSymbols) # True contiene simboli '+'

  • print(myStringa("New York").isSymbols) # False NON contiene simboli

.isonlySymbols

  • print(myStringa("/&%!^^").isonlySymbols) # True contiene solo simboli

  • print(myStringa("Ciao!!!").isonlySymbols) # False non contiene solo symboli

Altri esempi

  • stringa = "Ciao!"

  • risultato = myStringa(stringa).isSymbols

  • print(risultato) # True

Attenzione lo spazio NON è considerato come un simbolo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

issymbols_h4rck4n0-0.1.5.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

issymbols_h4rck4n0-0.1.5-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file issymbols_h4rck4n0-0.1.5.tar.gz.

File metadata

  • Download URL: issymbols_h4rck4n0-0.1.5.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for issymbols_h4rck4n0-0.1.5.tar.gz
Algorithm Hash digest
SHA256 29891234f083fbfb6478c689d06e99ce9f9a2c58c52669fc0f23cb6532f22d0f
MD5 6d626991e48cd99a0a11154b7edef7a2
BLAKE2b-256 fac66ad90946354c8615ccf3e345e1b3a798170724f44d21fc1bf69d38c8d1de

See more details on using hashes here.

File details

Details for the file issymbols_h4rck4n0-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for issymbols_h4rck4n0-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cf19ae9db71b9b3db3f418dbc73b91a4233717db76368a36227ec722b74341a2
MD5 bd68faeb09859cd69ea7a2df1e790e75
BLAKE2b-256 61f0c6a477a150d00ab6b377dc290b1126d3125e2ba803083d3f3940d886eebd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page