
06:14
Note: Import math

09:05
does it print with ‘ ‘ around the characters?

10:12
no

10:48
However apostrophes/single quotes are used to declare characters, another data type

11:39
TIL

15:05
(2,18,3)?

15:10
(2/18/3)

15:14
Range(2,18,3)

15:19
,*

17:52
Can you make a list using floats?

18:01
Why is the second method preferred again?

18:19
for patterns in lists

19:21
Change 18 with 1800, and you quickly see why it takes longer to do the above. You’d have to write every third number from 2 to 1800. Much easier to just write range(2, 1800, 3)

19:59
oh okay ty!

22:29
1-5

22:34
0-5

22:57
what if you change x in the for loop to something random like aardvark, would you still get 4 then 9, then -5, and so on

24:01
why is it 0-5 if there are 6 items?

24:13
starts at 0

24:14
it begins the count at 0

24:19
0,1,2,3,4,5 is 6 items

24:22
You’d have to change every instance of X to “aardvark”. Variable name is arbitrary. But you need to be able to refer to the same item

24:34
@Robby

24:42
thx

24:52
oh okay thank you

25:54
So what does the print part do again?

26:20
Prints the index in the list, as well as the element at that index

29:02
yes

32:17
Do you need to reset counters value?

32:28
no it pulls from the list

32:33
answered my own question

34:24
why use a counter then?

34:28
What’s the difference between for and while in this context

34:40
what are the empty brackets for?

34:42
can you do double for loops?

35:31
The empty brackets creates the list

35:52
oh okay thank you

35:59
@Haylee we need to define L, so the empty brackets defines it, and declares it is a list. That way we can add more lists to it.

38:24
Do we have an exact date for the first midterm yet?

39:29
Starts at 1, ends at 10, increments by 1

40:00
the for loop will go through each sequence sequentially

40:10
each item*

40:48
would you have to add the counter if you only did range(1,11)

41:38
When you don’t specify the third number, it will go up by 1 by default

41:50
The first method involves creating the list using counter while the second method uses the for loop to pre create the list?

42:40
Yes

42:41
Thank yoou

42:57
yup

43:02
why is there no indentation with print?

44:04
ohh, thank you

46:00
Do you need the colons after the for loop

46:16
In the list comprehension

46:42
Okay thank you

47:06
so what exactly is the list comprehension doing, I don’t quite get it. Is it simply a condensed version of the functions above?

48:02
Can you explain what its individual parts are doing, and relate it to the other statements because I am lost…

48:32
yea the for and while loop make sense

50:03
so it just square roots everything for counter in range of 1,11,1

51:21
So, u just add the payload before the for loop?

51:47
all 0's

51:49
0,0,0,0,0,0,

51:49
0 ten times?

51:50
Ten 0?

51:55
10 of them

51:55
10

52:50
What if you did range (N), would it be range (11)? Meaning you would print 1-11?

52:58
thanks prof

53:20
Okay ty

53:20
Can you explain why we get 10 zeros instead of 9

53:24
Thank you!

53:29
thank you have a good day

53:43
Okay thank you

53:44
Thank you prof!

53:48
Thanks!

53:50
Thank you!

53:51
Thank you, have a great day!

53:52
Thank you!

53:52
Thank you!

53:53
thank you!

53:56
thanks