Logo

COMPSCI 119 - Shared screen with speaker view
Finn Delay
10:18
Cannot enter a negative twice
Alyssa
15:46
when would if be better to use? while seems to cover more grounds so wouldn't it be best to just always use while rather than if?
Stephanie Wertheim
16:10
should you add an error message for the user? example: no negative numbers allowed
Uzair Ansar
16:10
also when do we use “do-while”
Christina Izbicki
16:55
is there a goto function in python
ally stankard
17:12
Should we clarify our prompt?
Ami
18:10
How do I see my line numbers?
Betame DeBono
18:54
options, line numbers
Ami
19:11
thank you!
Stephanie Wertheim
21:04
why do you have to include line 5?
Uzair Ansar
21:29
could we replace line 3 with N = -1
Jonathan Lewis
23:26
Do you have to use the word "message" or is that just for an example
Aman Saiju (he/him)
25:14
Is there some way to turn this whole thing into something like a function? So that it would be easier to repeat the whole thing and have it calculate factorials for multiple numbers?
Alyssa
27:02
what if you typed -1 then?
Uzair Ansar
32:07
so is print also a function then?
Christina Izbicki
34:56
so anything that comes up in purple is a function
Christina Izbicki
40:07
no
Christina Izbicki
42:43
does the while loop have to be indented from def
Alyssa
43:30
why is return on the same indent as while and not the N = int(input(Prompt)) line
Babak Amini
46:13
Can you explain return and print one more time when you get the chance
Corinne (she/her)
46:48
Why don’t you need to have the line with “enter a positive integer”?
Abigail Wing
49:18
So prompt is just a placeholder?
Christina Izbicki
50:09
I am getting a syntax error and it keeps highlighting the r in return. It is lowercase. Why would this be?
Uzair Ansar
50:34
check your indentations
Nick Newman
51:08
yeah I had that issue, you need to indent the return line and the line above it one more time
Nick Newman
52:18
:
Aman Saiju (he/him)
52:32
Are the variables global? do you have to use different variable names across functions vs the main part of the program?
kristenamoah
57:34
What does main mean?
Aman Saiju (he/him)
57:37
Main hasn’t been called
Christina Izbicki
58:00
could you use a while loop asking the user if they would like to run the program again
Uzair Ansar
01:00:30
thank you
alyjah gagnon
01:00:32
I have it line for line and its not working
William Wright
01:00:33
Thank you!
Nick Newman
01:00:34
Thank you, have a nice day!
Stephanie Wertheim
01:00:35
ty
Corinne (she/her)
01:00:36
thank you!
jackfallon
01:00:37
Thank you
Aman Saiju (he/him)
01:00:37
Thank you!
Finn Delay
01:00:38
thanks
Betame DeBono
01:00:42
Thank you
Amanda Murrizi
01:00:43
Thank you!
Christopher Montville
01:00:43
Thank you
Andrew Reilly
01:00:44
Thank you
Marcus Guzman
01:00:48
thank you