Beginner Python Tutorial 41 - Review of Lists and User Input

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

0:22 *"World record of chicken nuggets"*
😂

gradientO
Автор

f strings would be a neat follow up to this in the future! Show how to ease the concatenation pain and eliminate manually casting and all that.

This seems to achieve some of that "Python purista" mantra of "generic as hell, handle the everything, but don't ever be introspective and type check or strongly type anything" or whatever they say. They're hard to wrap my brain around sometimes.

print('What name you is? ', end="")
name = input()
print('number you liek? ', end="")
number = input()
print(f"hay {name} you like number {number}")

GavinRalston
Автор

we can use the following too :


print("first number : ")
n1=input()
print("second number : ")
n2=input()
print("addition = ", n1+n2)

gautamgarg
Автор

Booleans are great!


Now is this statement true of false ;)

janonimous