Day 02 Python - data types , Numbers , Operations , Type Conversions , f-Strings

https://repl.it/@appbrewery/day-2-start

 LEC 18 - Intro of todays goals 


==================================================================

LEC 19 - Data Type

1 - Strings

   Any thing Written in " "  (double Quotes) and ' ' (Single Quotes)  


----------------------------------------------------------------------------------------------------------------------- 

2 - Integers 

        # Any Whole number in programming is known as INTEGERS

------------------------------------------------------------------------------------------------------------------------

3 - Float 

          3.145  

-------------------------------------------------------------------------------------------------------------------------

4 - Boolean 

True

False 

#  First Letter should be capital


------------------------------------------------------------------------------------------------------------------------


==================================================================



#Check the data type of two_digit_number

# print(type(two_digit_number))


#Get the first and second digits using subscripting then convert string to int.

first_digit = int(two_digit_number[0])

second_digit = int(two_digit_number[1])


#Add the two digits together

two_digit_number = first_digit + second_digit


print(two_digit_number)


Comments

Popular posts from this blog

VBA01 Copy Resize Variably Sized Ranges

VBA MOD01 Passing Arguments to sub procedures (ByRef , By Val)

PY MOD01 Lecture 01