Edited, memorised or added to reading queue

on 28-Sep-2018 (Fri)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Comparative
#italian #italian-grammar
When one person, object or activity is compared with another a comparative form is used: mia figlia nuota meglio della sua ‘my daughter swims better than hers’; la pasta napoletana è migliore di quella siciliana ‘Neapolitan pasta is better than Sicilian pasta’.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#anki #learning #spaced_repitition
Anki makes memory a choice, rather than a haphazard event, to be left to chance.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Augmenting Long-term Memory
memory of a single person. In the first part of the essay I describe my personal experience using such a system, named Anki. As we'll see, Anki can be used to remember almost anything. That is, <span>Anki makes memory a choice, rather than a haphazard event, to be left to chance. I'll discuss how to use Anki to understand research papers, books, and much else. And I'll describe numerous patterns and anti-patterns for Anki use. While Anki is an extremely simple p




#Iran
The US military can destroy or neutralize the S-300, but it would need to devote significant assets and time to do so. US air operations in the Middle East over Syria and Iraq are not currently constrained by any requirement to use stealth aircraft. Because stealth aircraft have higher operational and maintenance costs and generally carry less ordnance than nonstealth aircraft, the US does not typically assign stealth aircraft to routine operations in uncontested airspace, such as the current campaign against ISIS. In the absence of the S-300 system, nonstealth aircraft currently assigned to conduct air strikes against ISIS could, on a very short timeline, be retasked to conduct operations against Iran.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Iran
The S-300 is another story entirely. It gives the Iranian military a significant strategic advantage against regional states and significantly complicates US air operations in the airspace protected by the S-300. The S-300 is the most advanced SAM system available for export to potential enemies of the United States, and significantly alters planning assumptions for potential US military operations. The S-300 may prevent the US from attaining air superiority as quickly as it has in the past, protracting air operations and potentially increasing the risk of losing aircraft and pilots.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




The S-300 system is deployed as one or more battalions each consisting of up to six batteries. Each battery can have up to eight TELs (missile-firing platforms). The number of TELs determines the number of different targets that the system can engage simultaneously or in close succession. Deploying more TELs also complicates efforts to suppress the system because they can disperse over a wide area.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Iraq
The Islamic Dawa Party reached a compromise candidate between the different wings led by Nuri al-Maliki and Haidar al-Abadi, as prime minister, while it was agreed to name Sadiq al-Rikabi to head the next government.
G
M
T
...
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Janahi Abadi and Maliki’s Dawa Party agree on a compromise candidate for prime minister - Iraqi Dinar News, Information and Facts - IRAQI DINAR
n a compromise candidate for prime minister Janahi Abadi and Maliki’s Dawa Party agree on a compromise candidate for prime minister Wednesday, September 26, 2018 at 15:48 PM Baghdad / Sky Press <span>The Islamic Dawa Party reached a compromise candidate between the different wings led by Nuri al-Maliki and Haidar al-Abadi, as prime minister, while it was agreed to name Sadiq al-Rikabi to head the next government. Sadiq al-Rikabi, a leader of the party, said he was named as the candidate of the Islamic Dawa party for prime minister for the next government, according to the Lebanese newspaper Al-A




#iraq
Iraq’s median age is [...] years old. 60% of the nation is 25 years or younger. Each year almost 900,000 people reach working age. By 2030, the adult population will grow from 20 million to 32million
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

MUSINGS ON IRAQ: World Bank Warns Iraq Facing Massive Job Crisis
public sector can meet this challenge. Unfortunately, Iraq has structural problems that inhibit the growth of private business. Like many developing countries Iraq has a very young population. <span>Iraq’s median age is 20 years old . 60% of the nation is 25 years or younger. Each year almost 900,000 people reach working age. By 2030, the adult population will grow from 20 million to 32million. That means that Iraq will need a total of 5-7 million jobs in the next 13 years, a 100-180% increase. If adjusted for retirement, the low labor force participation rate for women, Iraq




#Iraq
Officially, unemployment is 16% and for the youth it stands at 36%. However, an estimated 80% of young males are underemployed or jobless.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

MUSINGS ON IRAQ: World Bank Warns Iraq Facing Massive Job Crisis
f adjusted for retirement, the low labor force participation rate for women, Iraq has to create around 340,000 new jobs each year just to maintain the current unemployment/underemployment rate. <span>Officially, unemployment is 16% and for the youth it stands at 36%. However, an estimated 80% of young males are underemployed or jobless. That figure is even higher for young women. At the same time, the college educated population is also expanding. In 2016, around 490,000 Iraqis graduated from universities. This demogra




#Iraq
Iraq has a largely unskilled work force. Around 33% of the young are illiterate or semi-literate. Only 28% finished middle or high school, and only 7% graduated college.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

MUSINGS ON IRAQ: World Bank Warns Iraq Facing Massive Job Crisis
n has an unreliable power network. Electricity shortages and blackouts are constant, making many people rely upon private generators. That increases the costs on businesses to operate. Finally, <span>Iraq has a largely unskilled work force. Around 33% of the young are illiterate or semi-literate. Only 28% finished middle or high school, and only 7% graduated college. Overall, these are all huge disincentives for foreign businesses and investors to come to Iraq. Baghdad is constantly told that it must confront all of these issues. It has spent years




#Iraq
While Tarbush was focused upon how and why the military came to play such a leading role in 1930s-40s Iraq, his book can be used to look at current Iraqi politics as well. Today’s Iraqi government is again dominated by individuals such as Moqtada al-Sadr, Ammar Hakim, Haid al-Amiri, Nouri al-Maliki, Massoud Barzani, etc. They each have their own political party that is bereft of ideology and largely act as vehicles for their leader’s personal advancement. The government is still used to enrich the leadership and dish out patronage. The country’s institutions are still weak, and unable to constrain these individuals, and there is still no concept of an opposition as all parties are included in national unity governments. Finally, in neither period was the interests of the public really considered. The growing gap between the people and their representatives would eventually lead to the 1958 coup. Today, there are annual protests every summer, which pass as the heat dies down. Could this anger eventually boil over to a revolution or will the politicians be able to ride out this wave of resentment?
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

MUSINGS ON IRAQ: Review The Role of the Military In Politics, A case study of Iraq to 1941
ration of military men from politics. The army would eventually make a comeback but that was almost 20 years later. Since his book was about the military and politics this is a large oversight. <span>While Tarbush was focused upon how and why the military came to play such a leading role in 1930s-40s Iraq, his book can be used to look at current Iraqi politics as well. Today’s Iraqi government is again dominated by individuals such as Moqtada al-Sadr, Ammar Hakim, Haid al-Amiri, Nouri al-Maliki, Massoud Barzani, etc. They each have their own political party that is bereft of ideology and largely act as vehicles for their leader’s personal advancement. The government is still used to enrich the leadership and dish out patronage. The country’s institutions are still weak, and unable to constrain these individuals, and there is still no concept of an opposition as all parties are included in national unity governments. Finally, in neither period was the interests of the public really considered. The growing gap between the people and their representatives would eventually lead to the 1958 coup. Today, there are annual protests every summer, which pass as the heat dies down. Could this anger eventually boil over to a revolution or will the politicians be able to ride out this wave of resentment? That’s another discussion however as it strays far away from what Tarbush was writing about. Overall, Tarbush is one of a few books in English that deals with this period in Iraqi histo




However vertex_for_first_force is a Vertex object. So we put it in parenthesis and add a comma indicating a sequence, and it becomes a Region object.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




vertex_for_first_pin = trusslnstance.vertices \ .findAt((vertex_coords_for_first_pin,)) This statement uses the findAtO method to find the Vertex object and assign it to a variable.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




#Iraq
Many referred to Basra as the Venice of the Middle East for its rivers, winding canals, and decorative gondola-shaped boats that bared exported goods and newlyweds.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

These pictures of Iraq 60 years ago will make you wish you lived there
knew Iraq at the time feel nostalgic and crush the stereotypes of those unfamiliar with it. 1. Basra was known as the 'Venice of the Middle East' The port city of Basra Source: Twitter/IraqPics <span>Many referred to Basra as the Middle Eastern Venice for its rivers, winding canals, and decorative gondola-shaped boats that bared exported goods and newlyweds. 2. Iraq had the highest literacy rate in the region Iraqi literacy campaign Source: Twitter Education was taken very seriously in Iraq, particularly under the Comprehensive National Lit




Flashcard 3404832836876

Tags
#ital

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill






Flashcard 3404835982604


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill






#Iraq #Kurds #background
Erbil is locally called Hewler by the Kurds
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Erbil - Wikipedia
on 390 m (1,280 ft) Population (2015) • Total 852,500[1] Time zone UTC+3 (AST ) • Summer (DST ) UTC+3 (not observed) Postal code 44001 Area code(s) 066 Website http://hawlergov.org/ku/index.php <span>Erbil, also spelt Arbil or Irbil, locally called Hawler/Hewler by the Kurds (Kurdish : ھەولێر‎ Hewlêr; Arabic : أربيل‎, Arbīl; Syriac : ܐܲܪܒܝܠ‎, Arbela), is the capital of Iraqi Kurdistan and the most populous city in northern Iraq . It is located approximately




#Iraq #Kurds
Former director of ICG Joost Hiltermann describes PUK's president Kosrat Rasul Ali vigorous, razor sharp and articulate, and holds a commanding presence despite his ailment which derives from shrapnel lodged in his body.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Kosrat Rasul Ali - Wikipedia
on the city of Kirkuk and its oilfields. He then illegally occupied the city, with the help of Peshmerga.[18] he states what has been conquered with Kurdish blood shall remain Kurdish soil.[19] <span>Former director of International Crisis Group Joost Hiltermann describes Kosrat as vigorous, razor sharp and articulate, and holds a commanding presence despite his ailment which derives from shrapnel lodged in his body.[20] Patriotic Union of Kurdistan[edit ] Kosrat is the first deputy Secretary General of the Patriotic Union of Kurdistan and currently acting secretary general performing the duties of




Flashcard 3404851973388

Tags
#Iraq #Kurds
Question
PUK's president
Answer
Kosrat Rasul Ali

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Former director of ICG Joost Hiltermann describes PUK's president Kosrat Rasul Ali vigorous, razor sharp and articulate, and holds a commanding presence despite his ailment which derives from shrapnel lodged in his body. G M T Detect language Afrikaans Albanian Amhari

Original toplevel document

Kosrat Rasul Ali - Wikipedia
on the city of Kirkuk and its oilfields. He then illegally occupied the city, with the help of Peshmerga.[18] he states what has been conquered with Kurdish blood shall remain Kurdish soil.[19] <span>Former director of International Crisis Group Joost Hiltermann describes Kosrat as vigorous, razor sharp and articulate, and holds a commanding presence despite his ailment which derives from shrapnel lodged in his body.[20] Patriotic Union of Kurdistan[edit ] Kosrat is the first deputy Secretary General of the Patriotic Union of Kurdistan and currently acting secretary general performing the duties of







#SRS #anki #learning
I was reading the AlphaGo paper in support of a creative project of my own, namely, writing an article for Quanta Magazine. This is important: I find Anki works much better when used in service to some personal creative project.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Augmenting Long-term Memory
d, and I would have had to do far more work to build my own system in the area. But this foundational kind of understanding is a good basis on which to build deeper expertise. It's notable that <span>I was reading the AlphaGo paper in support of a creative project of my own, namely, writing an article for Quanta Magazine. This is important: I find Anki works much better when used in service to some personal creative project. It's tempting instead to use Anki to stockpile knowledge against some future day, to think “Oh, I should learn about the geography of Africa, or learn about World War II, or […]”. These




#SRS #anki #learning
It's tempting instead to use Anki to stockpile knowledge against some future day, to think “Oh, I should learn about the geography of Africa, or learn about World War II, or […]”. These are goals which, for me, are intellectually appealing, but which I'm not emotionally invested in. I've tried this a bunch of times. It tends to generate cold and lifeless Anki questions, questions which I find hard to connect to upon later review, and where it's difficult to really, deeply internalize the answers. The problem is somehow in that initial idea I “should” learn about these things: intellectually, it seems like a good idea, but I've little emotional commitment.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Augmenting Long-term Memory
support of a creative project of my own, namely, writing an article for Quanta Magazine. This is important: I find Anki works much better when used in service to some personal creative project. <span>It's tempting instead to use Anki to stockpile knowledge against some future day, to think “Oh, I should learn about the geography of Africa, or learn about World War II, or […]”. These are goals which, for me, are intellectually appealing, but which I'm not emotionally invested in. I've tried this a bunch of times. It tends to generate cold and lifeless Anki questions, questions which I find hard to connect to upon later review, and where it's difficult to really, deeply internalize the answers. The problem is somehow in that initial idea I “should” learn about these things: intellectually, it seems like a good idea, but I've little emotional commitment. Study hard what interests you the most in the most undisciplined, irreverent and original manner possible. – Richard Feynman By contrast, when I'm reading in support of some creative pr




#SRS #anki #learning
Typically I will extract anywhere from 5 to 20 Anki questions from the paper. It's usually a bad idea to extract fewer than 5 questions – doing so tends to leave research paper as a kind of isolated orphan in my memory. Later I find it difficult to feel much connection to those questions. Put another way: if a paper is so uninteresting that it's not possible to add 5 good questions about it, it's usually better to add no questions at all.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Augmenting Long-term Memory
bout the core claims, core questions, and core ideas of the paper. It's particularly helpful to extract Anki questions from the abstract, introduction, conclusion, figures, and figure captions. <span>Typically I will extract anywhere from 5 to 20 Anki questions from the paper. It's usually a bad idea to extract fewer than 5 questions – doing so tends to leave the paper as a kind of isolated orphan in my memory. Later I find it difficult to feel much connection to those questions. Put another way: if a paper is so uninteresting that it's not possible to add 5 good questions about it, it's usually better to add no questions at all. One failure mode of this process is if you Ankify** I.e., enter into Anki. Also useful are forms such as Ankification etc. misleading work. Many papers contain wrong or misleading state




#SRS #anki #learning

One failure mode of this process is if you Ankify misleading work. Many papers contain wrong or misleading statements.

(...)

As an example, let me describe how I Ankified a paper I recently read, by the economists Benjamin Jones and Bruce Weinberg. The paper studies the ages at which scientists make their greatest discoveries.

(...)

One of the questions I added to Anki was: “What does Jones 2011 claim is the average age at which physics Nobelists made their prizewinning discovery, over 1980-2011?” (Answer: 48). Another variant question was: “Which paper claimed that physics Nobelists made their prizewinning discovery at average age 48, over the period 1980-2011?” (Answer: Jones 2011). And so on.

Such questions qualify the underlying claim: we now know it was a claim made in Jones 2011, and that we're relying on the quality of Jones and Weinberg's data analysis. In fact, I haven't examined that analysis carefully enough to regard it as a fact that the average age of those Nobelists is 48. But it is certainly a fact that their paper claimed it was 48. Those are different things, and the latter is better to Ankify.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Augmenting Long-term Memory
feel much connection to those questions. Put another way: if a paper is so uninteresting that it's not possible to add 5 good questions about it, it's usually better to add no questions at all. <span>One failure mode of this process is if you Ankify** I.e., enter into Anki. Also useful are forms such as Ankification etc. misleading work. Many papers contain wrong or misleading statements, and if you commit such items to memory, you're actively making yourself stupider. How to avoid Ankifying misleading work? As an example, let me describe how I Ankified a paper I recently read, by the economists Benjamin Jones and Bruce Weinberg** Benjamin F. Jones and Bruce A. Weinberg, Age Dynamics in Scientific Creativity , Proceedings of the National Academy of Sciences (2011).. The paper studies the ages at which scientists make their greatest discoveries. I should say at the outset: I have no reason to think this paper is misleading! But it's also worth being cautious. As an example of that caution, one of the questions I added to Anki was: “What does Jones 2011 claim is the average age at which physics Nobelists made their prizewinning discovery, over 1980-2011?” (Answer: 48). Another variant question was: “Which paper claimed that physics Nobelists made their prizewinning discovery at average age 48, over the period 1980-2011?” (Answer: Jones 2011). And so on. Such questions qualify the underlying claim: we now know it was a claim made in Jones 2011, and that we're relying on the quality of Jones and Weinberg's data analysis. In fact, I haven't examined that analysis carefully enough to regard it as a fact that the average age of those Nobelists is 48. But it is certainly a fact that their paper claimed it was 48. Those are different things, and the latter is better to Ankify. If I'm particularly concerned about the quality of the analysis, I may add one or more questions about what makes such work difficult, e.g.: “What's one challenge in determining the age




The easiest way of tying states to the contract code that defines them is by hash. This works for very simple and stable programs, but more complicated contracts may need to be upgraded
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Simple constraints such as “any contract of this name signed by these keys” allow for some upgrade flexibility, at the cost of increased exposure to rogue contract developers. Requiring combinations of signatures helps reduce the risk of a rogue or hacked developer publishing a bad contract version, at the cost of increased difficulty in releasing new versions.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Flashcard 3404877401356

Question
Explain SHA256withRSA and SHA256withECDSA
Answer
[default - edit me]

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404881333516

Question
In python, [...] (such as strings, tuples, lists, ranges) are ordered sets of objects indexed by non-negative integers.
Answer
sequences

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404885265676

Question
In python, the following sequences are immutable: strings, tuples, and [...]
Answer
ranges

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404888935692

Question
In python, the following sequences are immutable: [...] , tuples, and ranges
Answer
strings

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404892081420

Question
In python, the following sequences are immutable: strings, [...] , and ranges
Answer
tuples

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404895227148

Question
In python, for the immutable types, any operation will only [...] a value rather than actually change the value
Answer
return

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404898372876

Question
In python, if you have sequence (either list, string, tuple, or range), named s, how would you get the number of elements/objects in that sequence?
Answer
len(s)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404902305036

Question
In python, if you have sequence (i.e. list), named s, how would you get the value in that sequence with the minimum length (e.g. for s = ["one", "athree", "zero"], "one" would be returned)?
Answer
min(s, key=len)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404905450764

Question
In python, if you have sequence (either list, string, tuple, or range), named s, how would you get the maximum value in that sequence, calculated by comparator function "compare"?
Answer
max(s, key=compare)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404908596492

Question
In python, if you have numeric sequence (either list, tuple, or range), named s, how would you get the sum of all its elements?
Answer
sum(s)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404913315084

Question
In python, a variable/object is True if it has any value other than [...] , False, or None.
Answer
0

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404916460812

Question
In python, a variable/object is True if it has any value other than 0, [...] , or None.
Answer
False

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404919606540

Question
In python, a variable/object is True if it has any value other than 0, False, or [...] .
Answer
None

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404922752268

Question
In python, if you have sequence (either list, string, tuple, or range), named s, how would you check if all its elements are True (i.e. not 0, False, or None)
Answer
all(s)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404925897996

Question
In python, if you have sequence (either list, string, tuple, or range), named s, how would you check if any one of its elements are True (i.e. not 0, False, or None)
Answer
any(s)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404929305868

Question
In python, if you have list l1=[1,2,3] and l2=[4,5,6], what is the difference between s1+s2 vs s1.extend(s2)?
Answer
s1+s2, creates new list s3 = [1,2,3,4,5,6]
s1.extend(s2), changes s1=[1,2,3,4,5,6] and returns None

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404932451596

Question
In python, you have s1="hello" and s2="world", what is the easiest way to print "helloworld" from these two strings?
Answer
print s1+s2

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404935597324

Question
In python, what is the easiest (shorthand) way to initialize a list, l, which is just a list of 10 0's, i.e. l = [0,0,0,0,0,0,0,0,0,0]?
Answer
l = [0] * 10

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404938743052

Question
In python, what is the easiest way to create a string, s, that is a 100 length string with just the letter 'a' repeated?
Answer
s= "a" * 100
(or s = 'a' * 100)

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404942150924

Question
In python, if you have list, l = [1,2,3,4,5], what is easy/shorthand way to create variables, a,b,c,d,e, and assign 1,2,3,4,5 to them respectivly (i.e. a=1, b=2, etc)?
Answer
a,b,c,d,e = l

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404945296652

Question
In python, you have list, l = [0,1,2,3,4,5,6,7,8,9], what is easiest way to create alternate list, l2, with just alternating elements starting from 1 to 7, i.e. l2 = [1,3,5,7]?
Answer
l2 = l[1:8:2]

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs







Flashcard 3404948442380

Question
In python, you have string, s="abcdef", how do you check to make sure "g" is not part of string s (make it signature of if statement)?
Answer
if "g" not in s:

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

pdf

cannot see any pdfs