Python Programming: Examples and Tips for INFO2000 Midterm

General Python Tips:

  • Loops: Use for i in range(start, stop, step): for iteration.
  • Lists: my_list = [1, 2, 3], access elements with my_list[index].
  • Dictionaries: my_dict = {'key': 'value'}, access with my_dict['key'].
  • Functions: Use def function_name(parameters): return value to define.
  • Importing Libraries: Use import random, import math.
  • Printing Debugging Info: Use print(variable).
  • String Manipulation: .upper(), .lower(), .strip(), .split(), .join().
  • File Handling: open('filename.txt', 'r') to read, open(
Read More

The Mighty Handful: A Movement in Russian Music

The Mighty Handful

Also known as The Five, this group of amateur musicians, each with professions outside of music, formed a movement to elevate Russian music.

Cesar Antonovich Cui (1835-1918)

Considered the group leader, Cui’s music is less known, but he was a significant theorist. His book, La Musique en Russie (Music in Russia), laid the foundation for the movement.

Alekseyevich Mili Balakirev (1836/7-1910)

Imaginative and eccentric, Balakirev founded a music school independent of the St. Petersburg

Read More

French Revolution: Causes, Key Events, and Timeline

The Old Regime in France

The Old Regime was the political and social system of the Kingdom of France from the Late Middle Ages until 1789, when hereditary monarchy and the feudal system of French nobility were abolished by the French Revolution.

The Enlightenment’s Influence

The following changes were promoted by a movement that emerged in France. The most outstanding ideas were: confidence in reason, faith in human progress, and criticism of the Old Regime.

The Boston Tea Party

Britain wanted to impose

Read More

English Grammar Transformations: Sentence Rewriting Exercises

1. The doctor is testing my eyes next Friday. I am having my eyes tested next Friday.

2. I’ve never seen such a beautiful mosque. This is the first time I have seen such a beautiful mosque.

3. He forgot my birthday. Therefore, he didn’t call me. If he hadn’t forgotten my birthday, he would have called me.

4. People are allowed to smoke in this bar. People can smoke in this bar.

5. This is the man. His job is very dangerous. This is the man whose job is very dangerous.

6. The engineer has repaired

Read More

Effective Negotiation Strategies: Techniques & Tactics

Negotiation

Negotiation is the mutual arrangement and discussion of the terms of a transaction or agreement.

The Types of Negotiation

Distributive negotiation occurs when one side wins (or, more accurately, gains) and the other party loses. This is called a zero-sum game in Game Theory.

Integrative negotiations are when both sides win, often achieved through compromising.

Pyrrhic negotiations occur when both sides lose. Cases include situations where sides want to appear strong and do not want the other

Read More

Hellenistic Period: Polis Decline and Philosophical Shifts

Hellenistic Period: Decline of the Polis

The Hellenistic period marks the decline of the polis as a political form. This decline stemmed from the policies of Alexander the Great (a student of Aristotle), who initiated a campaign to conquer the Greek world and parts of Asia. This context highlights the weakness of the polis for two primary reasons:

  • The poleis were too small to adapt to new political and economic requirements, leading to a loss of their main characteristics (self-sufficiency and autonomy)
Read More

Imperialism, WWI, Russian Revolution & Interwar Period

Unit 0 – Imperialism

Age of Imperialism: Beginning 1830s / 1870s – Intensification 1880s – End 1914 (WWl)

Industrial powers: (UK, France, Germany, Belgium, Italy, Russia* / USA, Japan) – Africa and part of Asia

Driving factors: Economic (new markets, raw materials) – Demographic (settlement) – Political (prestige) – Ideological (humanitarian / racial / social)

  • Berlin Conference: (1884 – 1885) – Summoned by Otto von Bismarck – European powers – Avoid clashes in Africa – Basic agreements: Free trade in
Read More

Popular and Court Poetry: Ballads, Romances, and Key Authors

Popular Poetry: Ballads and Romances

The romances and epic compositions were often arranged in verses to be sung or recited. These verses were octosyllabic with assonance rhyme pairs. They differ from ancient epics and were composed by individual authors.

The Ballad

The recopilación dl d fifteenth-century romances, both anonymous and old, are called romances from S.XVI dl. They can be of biblical and classical origin, recounting stories from the Old and New Testaments, tragic events like the Trojan

Read More

Rita’s Roses: Cash vs. Accrual Basis Accounting (2011)

Rita’s Roses: Net Income Calculation for 2011

In the course of your examination of the books and records of Rita’s Roses for the year ending December 31, 2011, you find the following data:

  • Cash paid for new equipment on 1/1/2011: $150,000
  • Total Sales (cash and credit) for 2011: $750,000
  • Accounts Receivable, 1/1/2011: $193,300
  • Accounts Receivable, 12/31/2011: $154,100
  • Salaries earned by employees: $60,000
  • Salaries owed to employees, 1/1/2011: $4,500
  • Salaries owed to employees, 12/31/2011: $6,700
  • Other expenses
Read More

Understanding the Second Spanish Republic: Autonomy, Elections, and Reforms

The Second Spanish Republic: A Historical Overview

Autonomy: According to the established constitution, Catalonia, the Basque Country, and Wales drafted their statutes of autonomy.

Events: Catalonia gained extensive legislative and judicial powers, as well as control over public order, within limits defined by the state.

BASC: The Basque Statute was approved during the Civil War.

Galician: In 1932, Galicia already had a draft statute. During the Biennium Black (1933-1936), Azaria fell, Alcalá-Zamora

Read More