Golang Tutorial #10 - For Loops & While Loops

preview_player
Показать описание
This golang tutorial covers for loops in the go programming language. Go's implementation of for loops allows you to write them in many different ways and to use them as a while loops.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

⭐ Tags ⭐
- Tech With Tim
- Golang For Loops
- Go Programming For Loops
- For Loops Golang
- Golang Tutorial
- Go Programming Tutorial

⭐ Hashtags ⭐
#GO #Golang
Рекомендации по теме
Комментарии
Автор

Tim this is a great series I'm really enjoying learning Go. This is my second language after python and I enjoy seeing the differences between the two. You have helped me learn a ton so keep up the good work!

avivhoitash
Автор

You are by far the best youtube for learning programming. Thank you for all your help that has helped me go so far in my first weeks of school!

Buzzer
Автор

Tim, you have a talent for tutorials.

MaximRovinsky
Автор

i have been watching all your GO video series ! Awesome !

alfabinomial
Автор

Correction. Instead of x != 0, just put x > 0. It does the same as x != 0, just makes it more reliable and less prone to possible outcome errors :)

EDITED:
Not only does it make it more reliable, but it is just the norm in programming to check values with >, <, >=, <=. Usually == and != are used when strictly checking a value without checking other values. Yes, in this case we might be strictly checking if the value of x is not zero, but normally a program like this is much more complex, therefore strictly checking is not the norm because it is more prone to outcome erros.

MocaCDeveloper
Автор

Keep these tutorials coming.Also make videos on object oriented programming for go lang.

usamasattar
Автор

First comment:
I love you Tim you are the best!

nakulnandhu
Автор

Hey Tim, I implemented the code but even If we don't use the ""continue"" the answer is same... The loop prints the same things... can you clarify more about the continue

dipanjanjayswal
Автор

When printing out the numbers divisible by 3, 7, and 9, do you need to put continue at the end? You don't have to right?

koreanman
Автор

i have a question, so i try this nested for with 2 different style, but the output its somewhat different,

1st style :

for i:=1; i <= 5; i++{
fmt.Println(i)
for j:=21; j <= 24; j++ {
println(j)
for k:=11; k<=14; k++ {
fmt.Println(k)
}
}
}



2nd style :

i:=1
j:=21
k:=11

for i <= 5{
fmt.Println(i)
i++
for j <= 24 {
println(j)
j++
for k<=14 {
fmt.Println(k)
k++
}
}
}

slyzyy
Автор

I was wondering if you'll notice that all numbers which are divisible by 9, are also divisible by 3 😁
Anyways thanks for tutorials!

michacyran
Автор

4:57 Somehow you do not move at all. Is golang that impressive?

vorlostzurab
Автор

Hey im new to brand new to Go and programming in general and i have a question. Right now im working on a project and my goal is to create a program that used a for loop to allow 3 passwords attempts before the program closing. So there will be a question of “enter 4 digit passcode” and the user will input something. If it matches the password, it breaks the loop. If not, it will add 1 to a counter and once counter = 3 the program will close and leave a message “too many attempts “ or something along those lines. I have given some attempts but im stuck on this one

jakobnorman
Автор

WHILE searching FOR loops in go language, I found this

Sociography
Автор

how to print the output in a single line like in python we use end=" " for single line outpput?

Akbar_p
Автор

Now I'm good to GO. FoR a WhiLe...

Chaynes
Автор

can someone wish me luck for tomorrow. i was given a task to develop a small web service that works with picture by the company i interviewed with. Tomorrow is the day that i have to present to them. i developed the micro service using golang.

Kai-enxs
Автор

Can you go over how the packages work? How do I write a package not called main

chrischambers
Автор

can you make a log in system in django?

farhanfaisal
Автор

Yo tim, when you finish this series Can you make series about python hacking?....

morty
welcome to shbcf.ru