Python Tutorial for Beginners - Lesson 10: Subroutines - Procedures and Functions

preview_player
Показать описание
This series will cover the basics of Python from outputting to the screen, mathematical calculations to reading/writing to text files.

In this lesson we look at what is a subroutine and know how to code the different types of subroutines.

~~~~~~~~~~~~~~~~~~~~

☑ Viewed? ☐ Liked? ☐ Subscribed?

~~~~~~~~~~~~~~~~~~~~

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

You have made my life easier! Even our teacher made no sense!

matty
Автор

bruh thanks g, this made no sense when my teacher explained it so thank you :)

rinrobin
Автор

You Made My life 10* best thing is that im copying and slowly learning from it! Keep it up and upload more :)!

txzeem
Автор

ty for explaining Subroutines i thought they were options like if statements

Trashy-Kun
Автор

Respect. You have made life so much easier

ninjaboyjames
Автор

15:17 that's the anwser
#Task 10b Write a function called decToBin takes in an interger and converts it to an 8-bit binary number repersented as a string.

def decToBin(integer):
binary = bin(integer)[2:].zfill(8)
return binary

print(decToBin(3))
print(decToBin(4))
print(decToBin(5))

BlingSco
Автор

Dude, I'm British myself, but I struggled to understand your accent.

desisher