Logo

COMPSCI 119 - Shared screen with speaker view
Will Martorana
07:24
sure
Finn Delay
07:35
yes
Jackey Zhang
07:42
yes
Alyssa
07:51
yes
Ben Sander
07:56
Yes
Finn Delay
07:59
https://discord.gg/AkVw6f
Emily Harding
08:02
yes
Finn Delay
08:10
Join this and ask questions if you need it
Uzair Ansar
08:31
we ready using this one https://discord.gg/uSUe2d
Christina Izbicki
09:45
could you use break instead of return because it does not need to return a number
alyjah gagnon
10:13
I have the exact same coding line for line but it isn't running super confusing
Abigail Wing
11:05
^ Same here
Christina Izbicki
11:16
you have to type Main()
alyjah gagnon
12:17
File "<pyshell#2>", line 1, in <module>Main()File "C:\Users\alyja\Desktop\Python\Factorial.py", line 19, in MainN = EnterPositive( "Enter a positive integer: " )NameError: name 'EnterPositive' is not defined
alyjah gagnon
12:29
I type in Main() and get that
alyjah gagnon
13:33
everything is perfect but ill keep trying
Alyssa
16:59
so return is necessary to put in all functions regardless of whether theres a value to return?
Christina Izbicki
23:45
wouldn't that only run Main once and then end the program
Corinne (she/her)
24:52
so that you can the same thing again if you need to
Aman Saiju (he/him)
24:55
So that we can easily rerun parts
sean song
24:56
it makes it easier for reuse again for larger programs
Christina Izbicki
24:57
it makes recalling different steps that need to be used multiple times easier
Shiran Wang
24:59
so others can use it
Christina Izbicki
25:10
it is more organized
ally stankard
25:24
To avoid retyping everything every time
Stephanie Wertheim
25:29
how come you don’t have to include print() with “enter a positive integer”?
Christina Izbicki
28:13
In BASIC you can open sublets of the main program to help you organize, and then call it into the main screen. Can you do that in Python or is it just done with functions?
Uzair Ansar
28:30
can we enter a command in the main code to automatically run a function without having to call for it?
April Haines
29:46
Can you go over how to get the code you entered in python to run?
Christina Izbicki
30:32
Uzair you could use a while loop to recall with certain conditions
Uzair Ansar
31:04
Great, thanks Christina
Christina Izbicki
36:34
its the recall on the first
Corinne (she/her)
41:44
why do you need the Q =?
Jackey Zhang
48:18
this made more sense to what return do now
Alyssa
49:57
why would you need to compute toad if you never print that and it wasn't involved in computing Z
Jonathan Lewis
50:12
what do the variables in the main program (frog, toad, Q) do?
Martin Kane
51:06
Was s equal to 3 first and then equal to 5?
Uzair Ansar
51:35
If you wrote Z=MyFunction(Frog), then would the other variables not be accessible in the function?
Martin Kane
51:53
Thank you
Alyssa
52:25
nothing to define R
Corinne (she/her)
54:53
Thank you!!
Abigail Wing
54:55
Thank you
Jonathan Lewis
54:57
Thank you
Annalisa Eramo
54:57
Thank you!
alyjah gagnon
54:57
thanks
Aman Saiju (he/him)
54:57
Thank you
Isayah Solis
54:58
thank you!
Rachel Moy
54:59
thank you professor
William Wright
54:59
Thank you
Marcus Guzman
55:00
thank you
Shiran Wang
55:01
thank you
Jackey Zhang
55:01
Thank you
kristenamoah
55:04
Thank you
Amanda Murrizi
55:06
thank you!