DEV Community

Justin Loertscher
Justin Loertscher

Posted on

My first scanning code

This is one of my first projects with Codecademy and here is my code not code. Well it's at least my Psudocode. Let me know where I went wrong. I really would appreciate the help.
Cheers

define text=
define pattern=
set if checked boolean= False
set if has pattern boolean= False

has text been checked?
no:
if text hasn't been checked:
scan for pattern in text
if pattern found set pattern found boolean = true
once text is scanned set text check boolean = true

Yes: print results, pattern found = true/false
Enter fullscreen mode Exit fullscreen mode

Top comments (1)