Skip to content

nerdy-dav/go-hardway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go the Hardway

A porting of the famous python the hardway. The best I can. Thank you so very very much Zed Shaw.

This is evolving.. I'm not a great software engineer (OK I'm a systems/devops engineer learning to code) and I can write some OK python when I need to .. This Go code may not be idiomatic.. yet.. I aim to get there though. This will hopefully help my learn and help some others on their way as well.

Thank you.

Exersize 01

Nothing to untoward here. Don't forget to declare your package and in go your program runs in this main function. you have to import fmt (format?) Println just does that print a line with this string...

Exersize 02

Comments are a double forward slash just like C.

Exersize 03

Println will perform the usual math and print it out after your string.

Exersize 04

Works similar to python here ..just be sure to leave your variables outside of the quotes in the Println statements. Other ways to declare a variable:

cars := 100

stuff := "cookies"

But it's often safer to declare a type. Note: you can't do math on floats AND int's in the same operation.

Exersize 05

Exersize 06

Exersize 07

Exersize 08

Exersize 09

Exersize 10

Exersize 11

Exersize 12

Exersize 13

Exersize 14

Exersize 15

Exersize 16

Exersize 17

Exersize 18

Exersize 19

Exersize 20

Exersize 21

Exersize 22

Exersize 23

Exersize 24

Exersize 25

Exersize 26

Exersize 27

Exersize 28

Exersize 29

Exersize 30

Exersize 31

Exersize 32

Exersize 33

Exersize 34

Exersize 35

Exersize 36

Exersize 37

Exersize 38

Exersize 39

Exersize 40

Exersize 41

Exersize 42

Exersize 43

Exersize 44

Exersize 45

Exersize 46

Exersize 47

Exersize 48

Exersize 49

Exersize 50

Exersize 51

Exersize 52

About

I'm learning go .. the extremely hardway. I am going to source Zed A Shaw's Hardway for python and ruby and write it in Go Lang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages