In order to learn programming, first try to install Homebrew on Mac to build environment
I'm doing it but it doesn't go well ...
I'm too embarrassed to be ignorant, but please give me some help!

Error message
Is it possible to install it? If i check with $brew doctor
zsh: command not found: $
Is it not installed properly? Kanato. . .
Applicable source code
Displayed after installation is as follows
==>This script will install:
/ usr/local/bin/brew
/ usr/local/share/doc/homebrew
/ usr/local/share/zsh/site-functions/_brew
/ usr/local/Homebrew
Press RETURN to continue or any other key to abort
==>Downloading and installing Homebrew ...
HEAD is now at a1939cfe7 Merge pull request # 6768 from MikeMcQuaid/analytics-fix-name
Already up-to-date.
==>Installation successful!
==>Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
==>Homebrew is run entirely by unpaid volunteers.Please consider donating:
==>Next steps:
-Run `brew help` to get started
-Further documentation:

xcode installed earlier

Supplemental information (FW/tool version etc.)

xcode Version 11.3 beta (11C24b)