<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=87.178.0.0%2F16</id>
	<title>IdeaWazaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=87.178.0.0%2F16"/>
	<link rel="alternate" type="text/html" href="https://ideawaza.com/wiki/Special:Contributions/87.178.0.0/16"/>
	<updated>2026-09-29T18:09:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://ideawaza.com/index.php?title=Immunology_basics&amp;diff=55938</id>
		<title>Immunology basics</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Immunology_basics&amp;diff=55938"/>
		<updated>2009-03-10T18:49:00Z</updated>

		<summary type="html">&lt;p&gt;87.178.111.192: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Immunology&#039;&#039;&#039; is a broad branch of [[biomedical science|biomedical]] [[science]] that covers the study of all aspects of the [[immune system]] in all [[organism]]s. It deals with, among other things, the [[physiology|physiological]] functioning of the immune system in states of both health and disease; malfunctions of the immune system in immunological disorders ([[autoimmune diseases]], [[hypersensitivity|hypersensitivities]], [[immune deficiency]], [[transplant rejection]]); the physical, chemical and physiological characteristics of the components of the immune system [[in vitro]], [[in situ]], and [[in vivo]]. Immunology has applications in several disciplines of science, and as such is further divided.&lt;br /&gt;
&lt;br /&gt;
Immunology is that branch of biomedical science,which deals with the study of normal and malfunctions of immune system in all organisms.&lt;br /&gt;
&lt;br /&gt;
==Histological examination of the immune system==&lt;br /&gt;
Even before the concept of [[immunity (medical)|immunity]] (from &#039;&#039;immunis&#039;&#039;, Latin for &amp;quot;exempt&amp;quot;) was developed, numerous early physicians characterized organs that would later prove to be part of the immune system. The key primary lymphoid organs of the immune system are [[thymus]] and [[bone marrow]],  and secondary lymphatic tissues such as [[spleen]], [[tonsil]]s, [[lymphatic system|lymph vessels]], [[lymph node]]s, [[adenoid]]s, and [[skin]]. When health conditions warrant, immune system organs including the thymus, spleen, portions of bone marrow, lymph nodes and secondary lymphatic tissues can be [[surgery|surgically]] excised for examination while patients are still alive.&lt;br /&gt;
&lt;br /&gt;
Many components of the immune system are actually [[cell (biology)|cell]]ular in nature and not associated with any specific organ but rather are embedded or circulating in various [[tissue (anatomy)|tissues]] located throughout the body.&lt;br /&gt;
&lt;br /&gt;
==Classical immunology==&lt;br /&gt;
&lt;br /&gt;
Classical immunology ties in with the fields of [[epidemiology]] and [[medicine]]. It studies the relationship between the body systems, [[pathogen]]s, and immunity. The earliest written mention of immunity can be traced back to the [[Pandemic|plague]] of [[Athens]] in 430 BCE. [[Thucydides]] noted that people who had recovered from a previous bout of the disease could [[nurse]] the sick without contracting the illness a second time. Many other ancient societies have references to this phenomenon, but it was not until the 19th and 20th centuries before the concept developed into scientific theory.&lt;br /&gt;
&lt;br /&gt;
The study of the molecular and cellular components that comprise the immune system, including their function and interaction, is the central science of immunology. The immune system has been divided into a more primitive [[innate immunity|innate immune system]], and [[adaptive immunity|acquired or adaptive immune system]] of vertebrates, the latter of which is further divided into [[humoral immunity|humoral]] and [[cell-mediated immunity|cellular components]]. &lt;br /&gt;
&lt;br /&gt;
The humoral (antibody) response is defined as the interaction between [[antibody|antibodies]] and [[antigen]]s. Antibodies are specific proteins released from a certain class of immune cells (B lymphocytes).  Antigens are defined as anything that elicits generation of antibodies, hence they are &#039;&#039;&#039;Anti&#039;&#039;&#039;body &#039;&#039;&#039;Gen&#039;&#039;&#039;erators.  Immunology itself rests on an understanding of the properties of these two biological entities. However, equally important is the cellular response, which can not only kill infected cells in its own right, but is also crucial in controlling the antibody response. Put simply, both systems are highly interdependent.&lt;br /&gt;
&lt;br /&gt;
In the 21st century, immunology has broadened its horizons with much research being performed in the more specialized niches of immunology. This includes the immunological function of cells, organs and systems not normally associated with the immune system, as well as the function of the immune system outside classical models of immunity.&lt;br /&gt;
&lt;br /&gt;
==Clinical immunology== &amp;lt;!--Clinical immunology redirects here--&amp;gt;&lt;br /&gt;
Clinical immunology is the study of [[disease]]s caused by disorders of the immune system (failure, aberrant action, and malignant growth of the cellular elements of the system). It also involves diseases of other systems, where immune reactions play a part in the pathology and clinical features. &lt;br /&gt;
&lt;br /&gt;
The diseases caused by disorders of the immune system fall into two broad categories: [[immunodeficiency]], in which parts of the immune system fail to provide an adequate response (examples include [[chronic granulomatous disease]]), and [[autoimmunity]], in which the immune system attacks its own host&#039;s body (examples include [[systemic lupus erythematosus]], [[rheumatoid arthritis]], [[Hashimoto&#039;s disease]] and [[myasthenia gravis]]). Other immune system disorders include different [[hypersensitivity|hypersensitivities]], in which the system responds inappropriately to harmless compounds ([[asthma]] and other [[allergy|allergies]]) or responds too intensely.&lt;br /&gt;
&lt;br /&gt;
The most well-known disease that affects the immune system itself is [[Acquired Immunodeficiency Syndrome|AIDS]], caused by [[HIV]]. AIDS is an immunodeficiency characterized by the lack of CD4+ (&amp;quot;helper&amp;quot;) [[T cells]] and [[macrophages]], which are destroyed by HIV.&lt;br /&gt;
&lt;br /&gt;
Clinical immunologists also study ways to prevent [[transplant rejection]], in which the immune system attempts to destroy [[allograft]]s or [[xenograft]]s.&lt;br /&gt;
&lt;br /&gt;
==Immunotherapy==&lt;br /&gt;
:&#039;&#039;See main article [[Immunotherapy]]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The use of immune system components to treat a disease or disorder is known as immunotherapy. Immunotherapy is most commonly used in the context of the treatment of [[cancer]]s together with [[chemotherapy]] ([[Medication|drug]]s) and [[radiotherapy]] ([[electromagnetic radiation|radiation]]). However, immunotherapy is also often used in the immunosuppressed (such as [[HIV]] patients) and people suffering from other immune deficiencies or autoimmune diseases.&lt;br /&gt;
&lt;br /&gt;
==Diagnostic immunology==&lt;br /&gt;
:&#039;&#039;See main article [[Diagnostic immunology]]&#039;&#039;&lt;br /&gt;
The specificity of the bond between antibody and antigen has made it an excellent tool in the detection of substances in a variety of diagnostic techniques. Antibodies specific for a desired [[antigen]] can be conjugated with a radiolabel, fluorescent label, or color-forming enzyme and are used as a &amp;quot;probe&amp;quot; to detect it.&lt;br /&gt;
&lt;br /&gt;
==Evolutionary immunology==&lt;br /&gt;
Study of the immune system in extant and [[extinction|extinct]] species is capable of giving us a key understanding of the [[evolution]] of species and the immune system.&lt;br /&gt;
&lt;br /&gt;
A development of complexity of the immune system can be seen from simple phagocytotic protection of single celled organisms, to circulating antimicrobial peptides in insects to lymphoid organs in vertebrates. Of course, like much of evolutionary observation, these physical properties are  often seen from the [[anthropocentric]] aspect.  It should be recognized that every organism living today has an immune system absolutely capable of protecting it from most forms of harm; those organisms that did not adapt their immune systems to external threats are no longer around to be observed.   &lt;br /&gt;
&lt;br /&gt;
[[Insect]]s and other [[arthropod]]s, while not possessing true adaptive immunity, show highly evolved systems of innate immunity, and are additionally protected from external injury (and exposure to pathogens) by their [[chitin]]ous shells.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Autoimmunity]]&lt;br /&gt;
* [[List of immunologists]]&lt;br /&gt;
* [[History of immunology]]&lt;br /&gt;
* [[Serology]]&lt;br /&gt;
* [[Immunodeficiency]]&lt;br /&gt;
* [[Medical technologist]]&lt;br /&gt;
* [[Osteoimmunology]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* [http://en.wikibooks.org/wiki/Immunology Wikibooks Immunology Textbook]&lt;br /&gt;
* Goldsby RA, Kindt TK, Osborne BA and Kuby J (2003) &#039;&#039;&#039;Immunology&#039;&#039;&#039;, 5th Edition, W.H. Freeman and Company, New York, New York, ISBN 0-7167-4947-5&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
{{WVD}}&lt;br /&gt;
* [http://www.sci-mate.org/wiki/index.php/About_Sci-Mate/ Research wiki Articles, Protocols and tools on Sci-Mate]&lt;br /&gt;
* [http://www.dayofimmunology.org/ April the 29th - the annual Day of Immunology]&lt;br /&gt;
* [[Annual Review of Immunology]] ([http://arjournals.annualreviews.org/loi/immunol journal home])&lt;br /&gt;
* [http://www.biomedcentral.com/bmcimmunol/ BMC: Immunology]- [[BioMed Central]]:Immunology is an [[open access journal]] publishing original peer-reviewed research articles. &lt;br /&gt;
* [http://www.fleming.gr Biomedical Sciences Research Center &amp;quot;Alexander Fleming&amp;quot; Institute of Immunology]&lt;br /&gt;
* [http://www.brt-labs.com/ BRT-Burleson Research Technologies] Tests the effects of pharmaceuticals in the developmental stage on the immune system.&lt;br /&gt;
* [http://www.ncbi.nlm.nih.gov/books/bv.fcgi?rid=imm.TOC&amp;amp;depth=2 Janeway&#039;s Immunobiology textbook] Searchable free online version at the [[National Center for Biotechnology Information]]&lt;br /&gt;
* [http://www.mugen-noe.org/ MUGEN NoE] murine models for immunological disease&lt;br /&gt;
* [[Nature Reviews Immunology]] ([http://www.nature.com/nri/index.html  journal home])&lt;br /&gt;
* [http://www.immport.org The Immunology Database and Analysis Portal] - an NIAID-funded database resource of reference and experiment data covering the entire immunology domain&lt;br /&gt;
* [http://medweb2.unige.ch/immunologie/ Transplantation Immunology] Interesting web site made by the faculty of medicine of the University of Geneva dealing with the immunological issues linked with the transplantation of materials genetically different between donor and recipient (hematopoietical stem cells, organs or the transfusion of blood).&lt;br /&gt;
* [http://media.med.sc.edu/microbiology2007/ Online lectures in immunology] University of South Carolina&lt;br /&gt;
* [http://www.aaaai.org/ American Academy of Allergy, Asthma &amp;amp; Immunology] Medical specialty organization&lt;br /&gt;
&lt;br /&gt;
{{Medicine}}&lt;br /&gt;
{{Immune system}}&lt;br /&gt;
[[Category:Immunology| ]]&lt;br /&gt;
[[Category:Subjects taught in medical school]]&lt;br /&gt;
&lt;br /&gt;
{{Link FA|ca}}&lt;br /&gt;
{{Link FA|de}}&lt;br /&gt;
&lt;br /&gt;
[[af:Immunologie]]&lt;br /&gt;
[[ar:علم المناعة]]&lt;br /&gt;
[[bs:Imunologija i imunohematologija]]&lt;br /&gt;
[[bg:Имунология]]&lt;br /&gt;
[[ca:Immunologia]]&lt;br /&gt;
[[cs:Imunologie]]&lt;br /&gt;
[[da:Immunologi]]&lt;br /&gt;
[[de:Immunologie]]&lt;br /&gt;
[[et:Immunoloogia]]&lt;br /&gt;
[[es:Inmunología]]&lt;br /&gt;
[[eo:Imunologio]]&lt;br /&gt;
[[eu:Immunologia]]&lt;br /&gt;
[[fa:ایمنی‌شناسی]]&lt;br /&gt;
[[fr:Immunologie]]&lt;br /&gt;
[[gl:Inmunoloxía]]&lt;br /&gt;
[[ko:면역학]]&lt;br /&gt;
[[hr:Imunologija]]&lt;br /&gt;
[[id:Imunologi]]&lt;br /&gt;
[[it:Immunologia]]&lt;br /&gt;
[[he:אימונולוגיה]]&lt;br /&gt;
[[lb:Immunologie]]&lt;br /&gt;
[[lt:Imunologija]]&lt;br /&gt;
[[hu:Immunológia]]&lt;br /&gt;
[[ms:Immunologi]]&lt;br /&gt;
[[nl:Immunologie]]&lt;br /&gt;
[[ja:免疫学]]&lt;br /&gt;
[[no:Immunologi]]&lt;br /&gt;
[[pl:Immunologia]]&lt;br /&gt;
[[pt:Imunologia]]&lt;br /&gt;
[[ro:Imunologie]]&lt;br /&gt;
[[ru:Иммунология]]&lt;br /&gt;
[[sq:Imunologjia]]&lt;br /&gt;
[[simple:Immunology]]&lt;br /&gt;
[[sk:Imunológia]]&lt;br /&gt;
[[sl:Imunologija]]&lt;br /&gt;
[[sr:Имунологија]]&lt;br /&gt;
[[sh:Imunologija]]&lt;br /&gt;
[[fi:Immunologia]]&lt;br /&gt;
[[sv:Immunologi]]&lt;br /&gt;
[[th:วิทยาภูมิคุ้มกัน]]&lt;br /&gt;
[[vi:Miễn dịch học]]&lt;br /&gt;
[[tr:İmmünoloji]]&lt;br /&gt;
[[uk:Імунологія]]&lt;br /&gt;
[[ur:مناعیات]]&lt;br /&gt;
[[zh:免疫学]]&lt;/div&gt;</summary>
		<author><name>87.178.111.192</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:Python/Operators&amp;diff=38143</id>
		<title>Archive:Python/Operators</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:Python/Operators&amp;diff=38143"/>
		<updated>2007-05-06T09:37:20Z</updated>

		<summary type="html">&lt;p&gt;87.178.238.68: /* Simple Math */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Operations, The Format Specifier, and Other Commands=&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&lt;br /&gt;
There are certain things that you can do with all of the &#039;&#039;types&#039;&#039;.  You can &#039;&#039;do simple math, index, slice, and check for membership.&#039;&#039;  You can also use the Format Specifier in &#039;&#039;strings&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Simple Math===&lt;br /&gt;
&lt;br /&gt;
Math is very straight forward in Python.  + adds, - subtracts, / divides, and believe it or not * multiplies.  The main thing to comment on is %.  % divides a problem and then returns the remainder. This is called the modulo operation.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;9 % 3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;9 % 2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
The % command can be used to find out if something is even or odd or if it is a multiple of some number.  Here is some code that is a little advanced for you right now.  Just type it in and now that within a couple of lessons you will know what you did.  When you type &#039;&#039;&#039;&amp;quot;print a is even&amp;quot;&#039;&#039;&#039; it must be 4 spaces to the right of the &#039;&#039;&#039;i&#039;&#039;&#039; in &#039;&#039;&#039;if&#039;&#039;&#039;, I am having trouble working with Wikiversity and can&#039;t get it to do that on this page without forming some kind of box.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;a = 4&#039;&#039;&#039;&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;if a % 2 == 0:&#039;&#039;&#039;&lt;br /&gt;
 ...     &#039;&#039;&#039;print &amp;quot;a is even&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
 &#039;&#039;&#039;a is even&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also use variables, and elements and values in simple math.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = 1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;y = 5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x + y&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;6&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
That is how the variable works.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = [1, 2, 3]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x[1] + x[2]&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
That is how you use elements from a tuple or list to do math.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = {&#039;a&#039;:1, &#039;b&#039;:2}&#039;&#039;&#039;&lt;br /&gt;
=You can also add and multiply strings, tuples, and lists.&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x[&#039;a&#039;] + x[&#039;b&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
That is how you do math with values from a dictionary.  Don&#039;t forget to use quotations around the keys unless you use &#039;&#039;integers&#039;&#039; as the keys.  Spend a couple of minutes messing around with this stuff, its fun and it&#039;ll help you remember it better.  You may also add strings, tuples, and lists.&lt;br /&gt;
&lt;br /&gt;
====Concatenating====&lt;br /&gt;
&lt;br /&gt;
To add two strings together. to do this you just type the first string, an addition sign, the second string.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;&amp;quot;Python&amp;quot; + &amp;quot; is awesome&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can do the same with variables refering to strings.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = &amp;quot;Python&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;y = &amp;quot; is awesome&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x + y&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;Python is awesome&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can do the same with tuples.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = (&#039;I&#039;, &#039;Love&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;y = (&#039;Wikiversity&#039;,)&#039;&#039;&#039;   &#039;&#039;DON&#039;T FORGET THE COMMA AFTER &#039;&#039;&#039;WIKIVERSITY&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;print x + y&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(&#039;I&#039;, &#039;Love&#039;, &#039;Wikiversity&#039;)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It works the same with &#039;&#039;lists&#039;&#039;.  What you cannot do is combine two different kinds of &#039;&#039;types&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = (&#039;I&#039;, &#039;Love&#039;)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;y = &#039;Python&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;print x + y&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Traceback (most recent call last):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;File &amp;quot;&amp;lt;pyshell#91&amp;gt;&amp;quot;, line 1, in ?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;print x + y&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TypeError: can only concatenate tuple (not &amp;quot;str&amp;quot;) to tuple&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Multiplying &#039;&#039;Types&#039;&#039;====&lt;br /&gt;
&lt;br /&gt;
Multiplying is very easy and straight forward.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = &#039;dog&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x * 5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;dogdogdogdogdog&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now with a tuple.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = (&#039;dog&#039;,)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x * 5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(&#039;dog&#039;, &#039;dog&#039;, &#039;dog&#039;, &#039;dog&#039;, &#039;dog&#039;)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now with a dictionary.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = {&#039;dog&#039;:1}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x * 5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Traceback (most recent call last):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;File &amp;quot;&amp;lt;pyshell#5&amp;gt;&amp;quot;, line 1, in ?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;x * 5&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TypeError: unsupported operand type(s) for *: &#039;dict&#039; and &#039;int&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can&#039;t do it with dictionaries, that would make more than one of the same key, remember.&lt;br /&gt;
&lt;br /&gt;
===Indexing===&lt;br /&gt;
You have already learned how to index in lesson 2.  When you typed x[3] you where indexing.  You may also index a string without first making a variable represent it.  &lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;&amp;quot;I Love Wikipedia&amp;quot;&#039;&#039;&#039;[5]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;e&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
simple enough.&lt;br /&gt;
&lt;br /&gt;
===Slicing===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Slicing&#039;&#039; is used to access a range of elements the way that &#039;&#039;indexing&#039;&#039; accessess one element.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = &amp;quot;Wikipedia and Python are awesome&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;print x[14:32]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Python are awesome&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The numbers that you enter after the variable (the [14:32]) are called &#039;&#039;indices&#039;&#039;.  The way the last one works is hard to understand at first.  I&#039;ll do another example to make it clear.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = &#039;1234&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now type:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;print x[1:3]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;23&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It prints out the 2 because it starts numbering at 0, but the reason it prints out the 3 instead of the 4 is because it counts the &#039;&#039;&#039;[3]&#039;&#039;&#039; that you entered as the end point and does not include it.  Seems wierd at first but easy to get used to.&lt;br /&gt;
&lt;br /&gt;
You may also use negative numbers as the indices &#039;&#039;&#039;(x[-12:-])&#039;&#039;&#039;.  If you only use one negative indice &#039;&#039;&#039;(x[-4:])&#039;&#039;&#039; Python will print starting with the element selected and go until the end of the string, tuple or list.  This works for positive indices as well &#039;&#039;&#039;(x[:3])&#039;&#039;&#039;.  Python will print the first 2 elements of &#039;&#039;&#039;x&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Another thing that you can do when &#039;&#039;splicing&#039;&#039; is enter the &#039;&#039;step&#039;&#039; indice.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x = &amp;quot;0123456789&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x[1:-1:3]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; &#039;147&#039; &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You may also just use the step indice.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x[::3]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;0369&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can do this to find every other element or every third or whatever your needs require.  You may also make the step indice negative.  By doing so you make the elements return starting with the last one.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x=&#039;0123456789&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Now Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;x[-2:1:-1]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;8765432&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When the step indice is negative it is important to remember to make sure that the first indice is calling an element that comes later in the string, tuple or list than the second element.  Just as in the last example &#039;&#039;&#039;-2&#039;&#039;&#039; is representing &#039;&#039;&#039;8&#039;&#039;&#039; while &#039;&#039;&#039;1&#039;&#039;&#039; is representing 2.&lt;br /&gt;
&lt;br /&gt;
I&#039;ll have to finish this lesson some other time, my bed is calling me.&lt;br /&gt;
&lt;br /&gt;
===The Format Specifier===&lt;br /&gt;
&lt;br /&gt;
You are going to use this versatile command constantly.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &#039;&#039;&#039;print &#039;I Love %s&#039; % &#039;Linux&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;I Love Linux&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
What the percent sign does is hold the place in the string and let you tell Python what to put there at the end of the string.  The &#039;&#039;&#039;s&#039;&#039;&#039; behind the &#039;&#039;&#039;%&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Computer science]]&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Python]]&lt;/div&gt;</summary>
		<author><name>87.178.238.68</name></author>
	</entry>
</feed>