Variables - Python | Lesson 3 (Free Coding Bootcamp)

Опубликовано: 03 Декабрь 2021
на канале: Code with Vincent
17,912
509

Free Coding Bootcamp - Go from Zero to Software Engineer

This Bootcamp will follow the roadmap covered in this video
   • How to become a software engineer wit...  

In this lesson, we learn about variables and how it can be used to store a value.

To assign a value to a variable, we use an equal sign:
ex) myName = "Vincent"

There are 2 styles of coding: (Camel Case is the most used)
Camel Case: all words joined together, where each subsequent word's first letter is capitalized.

ex) myNameIs, theBigBrownFox

Snake Case: replace spaces with underscores

ex) my_name_is, the_big_brown_fox

There are many types for values, in this video we talk about 4 of them:

Strings: Sequence of characters
ex) "Hello World", "Cash Money $$$!@#@#@"

Integers: Any non decimal number
ex) 1, 0, -1

Floats: Any decimal number
ex) 3.14, 12.32, 123123213.1

Booleans: Either True or False

Pro Tip: If you don't know what something is, just print it!
If you don't know what the value is for a variable, you can print it:

myName = "Vincent"
print(myName)

You can also get the type of the variable or value with:
type(...)

ex)
myName = "Vincent"
print(type(myName))
print(type(123))

🔥 Drop a comment to help the algorithm :)
👍 Subscribe to get notifications for the next video
👉 Full Series Playlist:    • Python - Intro to Programming | Zero ...  

-----------------
😎 Resources
-----------------
👯 TikTok
📸 Instagram
💬. Join the Discord
📜. FREE Resume Template
📕. FREE Note taking template
https://beacons.ai/codewithvincent

We will be using https://replit.com as our editor, but feel free to use something else if you wish.

-----------------
👾 Important Videos
-----------------
My Computer Science experience:    • What it was really like as a Computer...  
The side project that got me interviews:    • The side project that got me intervie...  
My Resume walkthrough:    • The resume that got me a 200k Softwar...  
Ace your technical interviews:    • How to ace your technical interview (...  

-----------------
🧑🏻‍💻 About Me
-----------------
I am a full time iOS engineer, with over 7 years of programming experience.
My goal is teach you the bare minimum necessary to break into tech ASAP.

Learn more about my programming journey
7 years of coding in 12 minutes:    • 7 years of coding in 12 minutes (Geom...  

I offer 1 on 1 mentorship as well, feel free to DM me on discord

#coding #bootcamp #learntocode #codewithvincent

-----------------
Chapters
-----------------
0:00 Introduction
0:37 Creating a variable
0:58 How to name variables
1:38 Value types
1:46 Strings
2:04 Integers
2:08 Floats
2:14 Booleans
2:19 Naming variables
2:57 Printing variables
3:31 type() function


Смотрите видео Variables - Python | Lesson 3 (Free Coding Bootcamp) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Code with Vincent 03 Декабрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 17,912 раз и оно понравилось 509 посетителям.