[2019] How to Code with Python For Beginners: Lesson 1 - Commenting, Print Statement and Data Types

preview_player
Показать описание
In this video we will review how to code with python and the basics around commenting, printing and data types. I will also introduce variables but that is covered in more detail in lesson 3

All python coding is done using python 3.7

MASTER PYTHON COMPLETE BEGINNERS COURSE OUTLINE

What Does a Data Science Executive Carry Around in 2019?

Laptop - 2018 MacBook Pro with Touch Bar
Tablet - 2017 9.7” iPad or

Home Setup for more intense analysis and editing:

Other options to run Python on a budget

Any inexpensive Android Tablet (all Fire tablets with playstore side loaded)

Favourite Mobile Apps to Run Python and Code

Рекомендации по теме
Комментарии
Автор

Excellent video and very straightforward to follow for a complete beginner! Thank you!

am
Автор

Good video and easy explanations. Subscribed!

manicbassa
Автор

Word: 'Hello World',
Name: 'My name is TheDuck',
Color: 'My favorite color is orange'

print(Word+Name+Color)

theduck
Автор

Hi Sats
Tried two methods...

Your_name = 'Rich'
Favorite_color = 'purple'

# method 1
print("Hello World, my name is", Your_name, ", my favorite color is", Favorite_color )

# method 2
print(f'Hello World, my name is {Your_name}, my favorite color is {Favorite_color} ')

print (type(Your_name))
print (type(Favorite_color))

Hello World, my name is Rich, my favorite color is purple
Hello World, my name is Rich, my favorite color is purple
<class 'str'>
<class 'str'>

Rich-lsyq
Автор

Output:
Hello World, My name is Venki, and my favorite color is Blue
Data type of Hello World is <class 'str'>
Data type of Venki is <class 'str'>
Data type of Blue is <class 'str'>

'''
Code:
print(f'{string1}, My name is {name}, and my favorite color is {fav_color}')
print(f'Data type of {string1} is ', type(string1))
print(f'Data type of {name} is ', type(name))
print(f'Data type of {fav_color} is ', type(fav_color))
'''

venkadesh
Автор

name= 'my name is Hector'
colour= 'blue'
print(f'Hello world '+name+' my favorite colour is '+colour)

elariovende
Автор

the commenting shortcut for windows is similar to mac. its 'ctrl' + '/'

PeluoluwaAdejugba
Автор

world='Hello World, '
name='my name is Sats '
color='and my favorite color is Blue'
print(world+name+color)

nitusidhu
Автор

Hi Sats,

I tried this out, ->print(f'{string_a}.today I am {int_b}.years old{float_c}')
and got this error message: line 11
print(format'{string_a}.today I am {int_b}.years old{float_c}')
^
Could you tell me how to fix this?

Srinath_Srinivasan
Автор

Hi!

Great video! Could you please give clarification?

# Code 1:
name = "Tom"
age =35

print ("Hello", name, "you are ", age, " years old!")

# in this case we don't need to change the type of numerical variable age

# Code 2

print ("Hello " + name + " you are " + str(age) + " years old!")

# In this case we have to change the type of the variable age, from int to str. Could you clarify
# why in one case we have to change the type and in other case we don't have to change the type?

igorbuzov
Автор

first time using python here, I downloaded 3.7.4 and it looks different from your video. If I type a parenthesis it automatically doesnt make the 2nd one, and I cant seem to type 2lines of code because if I hit enter it just runs the first line immediately

jigawatts
join shbcf.ru