CS50 2017 - Lecture 8 - Python

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

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

Error at 27:50 It should be:
print(f"{x} plus {y} is {x + y }" )

jessewang
Автор

Great lecture! Always wondered about that “__name__” feature, explained so well

delonk
Автор

I've been programming in python for a few months now, just teaching myself, and most of this lesson was very unfamiliar. For example import sys...I haven't seen that on any forum for any question I've searched.

mitchellsteindler
Автор

It would be better to have scratch, C and python examples on the screen at the same time for easier comparison between the languages.

First_Principals
Автор

Which software is he working on. Is it possible to compare three languages on the same screen. Can anyone tell me ?

nikhilchorge
Автор

It's just too bad you're using get_string() which is a cs50 specific function rather than a native Python function.

tappr
Автор

So would the check function in python implemented at the end just use linear search?

Patrick-xkhz
Автор

The python code at 46:30 is not equivalent, as the function get_positive_int is not known to the interpreter. We may need to move that function up.

SourabhBhat
Автор

Everything in the lecture is very helpful but these cs50 libraries which are suppose to help us are unnecessary. Why don't we deal with the actual standards and not use these extra functions?

amansinghbhadauria
Автор

Thank You David for the lecture on Python

ShawtyCheeseJ
Автор

what is the best way to learn python from scratch please help me

vikashkumar-osmj
Автор

at 19:32, can we do, print("hello, f" + s)

deeraj
Автор

at 1:01:17 can we use variable name other than s?

deeraj
Автор

if __name__ == '__main__' : simply mean .... execute everything in these file ...🤘❤💚

alimohmed
Автор

Hi Professor David I have completed the basics of Python and I have problems configuring programs. Do you recommend what to do after studying?

mandark
Автор

hello David what is wrong with this code?
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from math import sqrt
>>> def getLength ():
length = float(input("please enter length of triangle side"))
return length
side1 = getLenght()
SyntaxError: invalid syntax
>>>

enockkoech
Автор

Now at present, I wanna start to learning python. Please, expert engineer suggests me...

eliyasakondo
welcome to shbcf.ru