filmov
tv
Python Programming for Beginners: Contains - Type of applications| Todo App| While| Match Case Loop

Показать описание
Python Programming Fundamentals: Learn Python from Scratch
This Python training video is designed for beginners who want to learn the fundamentals of Python programming. Through practical examples and exercises. By the end of the video, you'll have a solid understanding of Python and be able to write Python code to solve simple to intermediate programming problems.
Timecodes
0:00 Intro/ Types of Computer application
1:47 Steps to create python program in PyCharm
2:44 Hello World! program in Python
3:50 Variables in Python
4:11 Getting input from user
6:34 List in Python
7:41 Identify Type of variables
8:26 While loop in Python
10:35 Secret of getting list of methods for a particular Data type
11:20 Coding Exercise 1
11:36 Match Case in Python
15:23 Coding Exercise 2 & 3
15:43 Agenda for next video
15:53 End and asking for Subscription 😂
CONTENT:
user_prompt = "Enter a todo:"
todo1 = input(user_prompt)
todo2 = input(user_prompt)
todo3 = input(user_prompt)
todos = [todo1,todo2,todo3]
print(todos)
--------
user_prompt = "Enter a todo:"
todo1 = input(user_prompt)
todo2 = input(user_prompt)
todo3 = input(user_prompt)
todos = [todo1,todo2,todo3]
print(todos)
print(type(user_prompt))
print(type(todo1))
print(type(todos))
--------
user_prompt = 'Enter a todo:'
todo1 = input(user_prompt)
todo2 = input(user_prompt)
todo3 = input(user_prompt)
todos = ["My Todo list",todo1,todo2,todo3]
print(todos)
--------
//Batch Operation, While Loop
user_prompt = 'Enter a todo:"
while True:
todo = input(user_prompt)
print(todo)
print("Next..")
--------
user_prompt = "Enter a todo:"
todos = []
while True:
todo = input(user_prompt)
print(todos)
--------
user_prompt = "Enter a todo:"
todos = []
while True:
todo = input(user_prompt)
print(todos)
--------
user_prompt = "Enter a todo:"
todos = []
while True:
todo = input(user_prompt)
print(todos)
--------
Match Case
todos = []
while True:
user_action = input("Type add or show:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
print(todos)
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
print(todos)
case 'exit':
break
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
for item in todos:
print(todos)
case 'exit':
break
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
for item in todos:
print(todos)
case 'exit':
break
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
for item in todos:
print(todos)
case 'exit':
break
case Unknown:
print("Please Enter add or show or exit command only")
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
This Python training video is designed for beginners who want to learn the fundamentals of Python programming. Through practical examples and exercises. By the end of the video, you'll have a solid understanding of Python and be able to write Python code to solve simple to intermediate programming problems.
Timecodes
0:00 Intro/ Types of Computer application
1:47 Steps to create python program in PyCharm
2:44 Hello World! program in Python
3:50 Variables in Python
4:11 Getting input from user
6:34 List in Python
7:41 Identify Type of variables
8:26 While loop in Python
10:35 Secret of getting list of methods for a particular Data type
11:20 Coding Exercise 1
11:36 Match Case in Python
15:23 Coding Exercise 2 & 3
15:43 Agenda for next video
15:53 End and asking for Subscription 😂
CONTENT:
user_prompt = "Enter a todo:"
todo1 = input(user_prompt)
todo2 = input(user_prompt)
todo3 = input(user_prompt)
todos = [todo1,todo2,todo3]
print(todos)
--------
user_prompt = "Enter a todo:"
todo1 = input(user_prompt)
todo2 = input(user_prompt)
todo3 = input(user_prompt)
todos = [todo1,todo2,todo3]
print(todos)
print(type(user_prompt))
print(type(todo1))
print(type(todos))
--------
user_prompt = 'Enter a todo:'
todo1 = input(user_prompt)
todo2 = input(user_prompt)
todo3 = input(user_prompt)
todos = ["My Todo list",todo1,todo2,todo3]
print(todos)
--------
//Batch Operation, While Loop
user_prompt = 'Enter a todo:"
while True:
todo = input(user_prompt)
print(todo)
print("Next..")
--------
user_prompt = "Enter a todo:"
todos = []
while True:
todo = input(user_prompt)
print(todos)
--------
user_prompt = "Enter a todo:"
todos = []
while True:
todo = input(user_prompt)
print(todos)
--------
user_prompt = "Enter a todo:"
todos = []
while True:
todo = input(user_prompt)
print(todos)
--------
Match Case
todos = []
while True:
user_action = input("Type add or show:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
print(todos)
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
print(todos)
case 'exit':
break
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
for item in todos:
print(todos)
case 'exit':
break
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
for item in todos:
print(todos)
case 'exit':
break
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
--------
todos = []
while True:
user_action = input("Type add or show or exit:")
match user_action:
case 'add':
todo = input("Enter a todo:")
case 'show':
for item in todos:
print(todos)
case 'exit':
break
case Unknown:
print("Please Enter add or show or exit command only")
print("Thanks!, Don't forgot to Subscribe the channel Devops Mantra!")
Комментарии