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
Top comments (1)
Hi, first of all welcome to DEV.to 🙌🏻
I suppose from the
pyth
tag in your post that you want to learn Python?W3Schools has you covered, on W3School you can learn more about how Python variables specifically work as well.
But the good part is. If you click on any of the
Try it yourself
buttons you get use a free Python interpreter without installing anything on your computer. For example: w3schools.com/python/trypython.asp...Has the following code:
This will do variable assignment like you mentioned above. So to convert your pseudocode somewhat to python it might be like this:
Happy Learning 😎