Back to Browse

Variables - Python | Lesson 3 (Free Coding Bootcamp)

18.4K views
Dec 3, 2021
4:47

Free Coding Bootcamp - Go from Zero to Software Engineer This Bootcamp will follow the roadmap covered in this video https://www.youtube.com/watch?v=puLSsuG1YE4 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: https://www.youtube.com/playlist?list=PLEcHbCIBlyJryQxxElze2C_xMHLAJW94C ----------------- 😎 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: https://www.youtube.com/watch?v=vRcGQLKXlMc The side project that got me interviews: https://www.youtube.com/watch?v=S5dbMCIVGsI My Resume walkthrough: https://www.youtube.com/watch?v=jhR9VINZB40 Ace your technical interviews: https://www.youtube.com/watch?v=baOyvH_H1NY ----------------- πŸ§‘πŸ»β€πŸ’» 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: https://www.youtube.com/watch?v=mBecK9SsRq4 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

Download

0 formats

No download links available.

Variables - Python | Lesson 3 (Free Coding Bootcamp) | NatokHD