Python Basics: Operators, Logic, Loops, Strings, Functions, Lists, Dictionaries and File I/O
Python Basics, Operators, Logic and Loops
Syntax and Reading Code
Variables such as x, y, value, word, text, n, i, total, and result are ordinary variable names, not Python commands. x=5 assigns or reassigns a value, while == compares equality. Python runs statements from top to bottom, expressions follow operator precedence, and chained methods run from left to right: s.lower().title().
#starts a comment that is ignored.- Indentation groups blocks of code.
:begins anif,for,while, ordefblock.()
Introduction to Java Programming: Basics, Comments, Loops and More
Introduction to Java Programming
Basics
– Every program has a file name, and that file name must match the name of the class.
– In order for a program to execute successfully, you need to have the following lines of code after the class header:
public class Review { ← class header
public static void main(String[] args) { ← main method header
//insert code here ← your code goes inside the body of the main method
}
}
Input-Process-Output
Every program will have inputs (variable declaration
Read MoreAviation English Communication: Radiotelephony and Question Forms for Pilots and ATC
Aviation English: Communication Problems, Radiotelephony and Question Practice
1. What is the main communication problem?
- Traducción: ¿Cuál es el problema principal de comunicación?
- English: Poor radio signal / Heavy accent or fast speech.
- Español: Mala señal de radio / Acento pronunciado o habla muy rápida.
2. How did the pilot try to help the controller understand?
- Traducción: ¿Cómo intentó el piloto ayudar al controlador a entender?
- English: By speaking slower and spelling words using the
Cost Comparison of Manufacturing Methods and Process Sequences
Economic Comparison of Aluminium and Steel Castings
In the design of a jet-engine part, either an aluminium alloy casting or a steel casting can be specified because both materials provide equal service. The aluminium casting weighs 1.2 kg and costs ₹80 per kg for casting, while the steel casting weighs 1.35 kg and costs ₹35 per kg. Machining costs are ₹150 per unit for aluminium and ₹170 per unit for steel. Every kilogram of excess weight carries a penalty of ₹1,300 because of increased
Read MoreRevenue vs Cost Dominated Methods, Value Engineering and Time Value of Money
(A) Differentiate Revenue Dominated and Cost Dominated Methods of Cash Flow
| Revenue Dominated Method | Cost Dominated Method |
|---|---|
| It is used when the revenue or income generated by alternatives is the main factor. | It is used when the cost of alternatives is the main factor. |
| The alternative giving higher revenue or economic benefit is generally preferred. | The alternative having lower equivalent cost is generally preferred. |
| It is suitable when alternatives have different revenues or benefits. | It is suitable when |
Cell Injury, Stress, Nutrition and Infectious Disease Pathology
UNIT 1: Cell Injury and Adaptations
1. Key Factors That Cause Cell Injury and How Injury Occurs
Causes:
Hypoxia/ischemia (most common): loss of blood supply, anemia, carbon monoxide, respiratory failure.
Physical agents: trauma, extreme heat/cold, radiation, electric shock, pressure changes.
Chemical agents and drugs: alcohol, acetaminophen overdose, carbon tetrachloride, heavy metals, poisons.
Infectious agents: bacteria, viruses, fungi, parasites (direct damage or toxins).
Immunologic reactions: hypersensitivity,
Read MoreEssential English Vocabulary: Intelligent, Lend a Hand, Sociable and More
English Vocabulary and Idioms
intelligent (adj) – able to think, understand and learn quickly, even difficult subjects and ideas
lend (lent, lent) / give a (helping) hand – help somebody in doing something / help (somebody) with something
let the cat out of the bag – let others know a secret, carelessly or by mistake
sociable (adj) – a friendly person, who enjoys being with other people.
discovered (adj) (обнаруженный) – undiscovered (adj)
known (adj) – unknown (adj)
English Vocabulary
Read MoreInfluential Figures Who Changed the World: Kroc, King, Jobs, Houdini, Mandela
1. Ray Kroc
Businessman in the fast-food industry
Five Facts
- Was born in 1902 in Illinois, USA.
- Was a milkshake-machine salesman.
- Met the McDonald brothers, who owned a successful fast-food restaurant.
- Was hired by them in 1954 and opened the first McDonald’s in 1955.
- Bought the McDonald brothers’ business in 1961 and started expanding it all over the world.
How Did He Change the World?
Ray Kroc changed the world by making McDonald’s a global restaurant brand. He developed a unique method of franchising
Read MoreCapital Assets, Family Pension, Depreciation, HRA and Gratuity Explained
Capital Assets
Capital assets include:
- Shares and securities
- Jewellery
- Mutual fund units
- Goodwill
- Patents and trademarks
- Stock-in-trade – goods held for sale in the ordinary course of business
Assets Not Considered Capital Assets
The following are generally excluded from the definition of capital assets under the Act:
- Stock-in-trade – goods held for sale in the ordinary course of business
- Personal effects – movable property used for personal purposes, such as clothes and furniture, except specified items
Information Security, Cybersecurity and UAE Data Protection Essentials
Information Security
Information security is the practice of protecting information and information systems from unauthorized access, use, disclosure, disruption, modification, and destruction.
- Confidentiality: our ability to protect our data from those who are not authorized to view it.
- Integrity: our ability to prevent our data from being changed in an unauthorized or undesirable manner.
- Availability: our ability to access our data when we need it.
The Growing Importance of Information Security
- Growing
