Learn to Program 3 : Math Strings Exception Handling

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


In this part of my Learn to Program tutorial I will continue teaching how to program through solving programming problems. We will cover Exception Handling, Do While Loops, the Math Module, the Decimal Module, Strings, and a whole lot more.

Thank you to Patreon supports like the following for helping me make this video

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

Hey derek i just wanted to thank you again for the tutorials

fay
Автор

This is not just essentially great tutorial... Your voice Derek... I could listen to it and listen. You are incredible teacher with great charisma! Thank you for your awesome work!

albr
Автор

Im on a gap year and decided to start programming and use this course to teach myself the basics. The problem right at the end had me stumped for 24 hours trying to figure out how to do and then to see the solution be so elegant and simple. Im loving this course Derek, thank you!

fdsChan
Автор

Great vids Derek. Thanks for the tutorials. This was my solution for the bonus task.

orig_string=input("Enter a string to hide in uppercase : ")
secret_message=""
for c in orig_string:
secret_message += str("{0:02}".format(ord(c) - 23))

result_string = ""
for d in range(0, len(secret_message) - 1, 2):
print("This part: ", secret_message[d:d+2])
result_string += + 23)

print("Original Message: ", orig_string)
print("Secret Message: ", secret_message)
print("Result Message: ", result_string)

francobusuttil
Автор

Learning how to go about solving problems is so important yet so looked over in comparison to learning syntax and language constructs. Great work Derek!

MrChinner
Автор

Making the unicode 3 digits to adjust for the unicode for "space" and adding the 3rd char_code = secret_string[i] + secret_string[i+1] + secret_string[i+2], was the only way for me to do the bonus homework. i am absolutely new to programming.
Awesome tutorials !.

fatehullahjalbani
Автор

I've never seen anyone that answers all of the questions, you are amazing, keep it up with the great work. Thank you very much

lakizmaj
Автор

Hey Derek. I wrote the below code and it worked for capital, lower, spaces, and combinations of them.
text = input('insert your text')
for i in range(0, len(text)):
print(ord(text[i]), ' ', end='')
for i in range(0, len(text)):
print(chr(ord(text[i])), end='')
Thank you for your great contribution and kind dedication.

mohammadbahabadi
Автор

16:26 you don't need to '- 1' from that, because range program does not consider 31st only 30, 17:21 see 'g' is missing

karthikpatnaik
Автор

Wow, I couldn´t figure out the last problem, I was still trying to process both two-digit and three-digit numbers and you showed it was so simple. Thank you Derek, I´m learning so much from your tutorials :).

numipinkpanda
Автор

Hey Derek. I have a question about the Decimal part at 11:20
Why did you put sum = D(0) w/o quotes then you put sum += D("0.1") w/ quotes.

I noticed that without the quotes the problem will come out like it does without using the Decimal method, so it only works with the quotes. What is the deal with adding the quotes to the float? I assume it makes it into a string. Is that just the way the Decimal method works?

deriegle
Автор

Derek is my Python Guru.... Thank you Derek for these python videos.
I have completed three videos till now.. all three are great to understand.
Still need to complete remaining videos...

gopikrishna
Автор

So far throughout this tutorial series I haven't been able to solve any of the problems, but I refuse to give up. I am determined to learn how to program.

JustSomeAussie
Автор

Hey Derek,
For the final Exercise at 28:07, the variable char_code is changing every literation like "72" first literation "73" the second literation, but the variable norm _string is not changing every literation instead it is putting the strings together "H" then "HI" then "HID" and finally "HIDE". Both variables are type str. So why isn't the variable char_code keeping the strings like this "7273" ?

karanrai
Автор

Hey, Derek thank for your work!
Your videos help me learning new things!Thank you again!

vipinsrp
Автор

Here is what I did for the last problem that worked for uppercase lowercase spaces and punctuation at the same time:

Norm_string = input('enter a string : ')

Print('here is your message')

For i in range(0, len(norm_string)-1)

Secret = str(ord(norm_string[i]))

For char in range(0, len(secret)-1, 2)

Print(secret)

Print('original message : ', norm)

arcsecondofparallax
Автор

Good morning Sir. I really thank you so much for your videos and code transcript. You present them very well and I really appreciate this. Thank you.

martinagoha
Автор

Hello Derek, I really don't understand this part: secret_string [i] + secret_string [i+1]

Awesome videos! they really help a lot

luisfelipecarrasquero
Автор

cool as always. I would suggest you go over the more "unusual" datatypes (ordered dicts, sets...) and some multithreading/process spawning :) keep it up !

mareinstalator
Автор

At 17:05, you don't need to subtract 1 since the range function has the stop index as non inclusive i.e. it is [start, stop).

Zen-lfzr
welcome to shbcf.ru