Course |
Attendee |
Question |
Treatment |
Location |
Time |
Python |
Jsmin Vega |
add one more element into a dictionary |
- Use cond.update()
- An argement should be in a dictionary as well
|
Dobbs Ferry, Maher Hall 112 |
2pm - 3:30pm |
|
Python |
Adejimi Adebo |
basics in Python |
- listening other questions...
|
Dobbs Ferry, Maher Hall 112 |
2pm - 3:30pm |
|
Python |
Jeffrey Vives |
HW3 |
- Why two different types of data in one line?
- "Enter your name and age: "
- name is in string
- age should be in int
- However, input() returns a value in string
|
Dobbs Ferry, Maher Hall 112 |
2pm - 3:30pm |
|
Python |
Merni Martina |
help with coding |
- What is ASCII?
- One character can be represented in a byte
- One byte is 8 bits
- How many characters can be represented in 8 bits?
- 2 to the power of 8, which is 256
- ASCII table shows mapping between characters and codes (either binary, hex, decemal, etc)
- How many bits are necessary to represent the English keyboard?
- 128 is enough
- English nees only one half of the ASCII table
- English can be represented by the lower-ASCII's only ;)
|
Dobbs Ferry, Maher Hall 112 |
2pm - 3:30pm |
|
Python |
Nick Franzi |
split() |
- The function split() can be applied to a string
- split() takes an argument, based on which you want to split
- split() returns a list of all strings split
- "Mercy Cyber is the best".split() returns what?
- ['Mercy', 'Cyber', 'is', 'the', 'best']
- Since no argement is used for split(), the given string is split based on a space.
- Based on a space? or multiple spaces as well?
- Yes, any number of consecutive spaces!
- what about split(':')? for any number of ':'?
- No, for any characters but white spaces, each such character can be applied.
- try if you want!
|
Dobbs Ferry, Maher Hall 112 |
2pm - 3:30pm |
|