#๐Ÿ”’ Midterm Study Guide

35 messages ยท Page 1 of 1 (latest)

atomic scarab
#

I am looking for a tutor to help me go over the study guide for my midterm and to make sure Im on the right track. Would prefer voice if possible. Ill share my screen. Not looking for answers but a walkthrough of the concepts we are going over. The topics are listed below
Know how to write functions.
Know how to use the accumulator pattern for number, string, and list.
What is Python string data?
How to create string in Python?
How the string index work? What are the valid stirng index?
String slicing.
What are string methods? You should know the common string methods such as join(), split(), capitialize(), replace(), find(), upper(), lower(), etc. Know how these methods work.
How does string comparison work?
Know how to use string format.
What is doc string?
What is Python list data?
How to create list?
What are list methods? You should know the common list methods such as sort(), append(), etc.
You shold know the common list functions such as len(), sum(), min() and max().
Know how to refer to item in a nested list.
What is list comprehension? How to use list comprehension?
What is Python tuple data?
How function return tuple data?
When a function return tuple data, how to save the data to variables?
What is Python dictionary?
Know the Python dictionary such as keys(), values(), items(), get(), etc. Know how these methods work.
Know how to add data to dictionary.
Know how to refer to item in dictionary.
What is Python module?
How to import module?
How to call functions/methods in a module?
Know common Python modules such as os, sys, urllib, date, datetime, math, random, etc. Know basic functionalities of each. For example, which module can retrieve the current working directory? Which module can access website? Which module can convert time zones?
What is Python package?
How to import package?
How to import on certain module within a package?
How to open file to read in Python?
How to open file to write in Python?
What is common separate values file? What does the delimiter separate?
How to read csv file in Python?

oblique streamBOT
#

@atomic scarab

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

devout fog
atomic scarab
#

all lol Im really bad at Python

devout fog
#

How the string index work? What are the valid stirng index?
Do you understand what this question is asking?

atomic scarab
#

No

devout fog
#

if there's a string variable named foo, how would you print the second character in that string?

atomic scarab
#

print(f"{foo[1]}")

devout fog
#

you could just do print(foo[1])

atomic scarab
#

I see what you did there.. lol

devout fog
#

it seems like you know more than you're letting on.

atomic scarab
#

Im not confident

devout fog
#
bar = {'a': 'b'}

how can we add a new key 'c' with a value of 42?

atomic scarab
#

Thats why I wanna run over it with someone that knows their stuff

devout fog
#

That's what we're doing right now. But I can't join voice. most people won't, either.

devout fog
atomic scarab
#

I know we just started pause rq gotta calm wife down quick. She is nervous about Iran

#

ummm regarding the question.
c = '42' idk

devout fog
#

we're adding it to a dict.

atomic scarab
#

bar['c'] = 42

#

had to look that one up

devout fog
#

@atomic scarab what have you been doing all semester?

#

I recommend writing some code that does all the things listed in the study guide.

atomic scarab
#

Went on a trip to germany for 2 weeks at the beginning. Learning SQL and network security. Found out wife is pregnant again. Trying to finish unpacking house we just moved into. SO a lot

#

and work on top of it and taking care of a 3 year old

devout fog
#

I see

#

@atomic scarab what was the most recent big project/assignment for the course?

atomic scarab
#

hasnt been a big project

#

it all out of a book

devout fog
#

but you have to write code for homework, right?

atomic scarab
#

for labs yeah

devout fog
#

okay, what was the most recent lab about?

oblique streamBOT
#

:warning: The owner of this post is no longer in the server.

oblique streamBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.