<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://wikiskola.se/index.php?action=history&amp;feed=atom&amp;title=Diskussion%3AMittpunktsformeln_i_Python</id>
	<title>Diskussion:Mittpunktsformeln i Python - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://wikiskola.se/index.php?action=history&amp;feed=atom&amp;title=Diskussion%3AMittpunktsformeln_i_Python"/>
	<link rel="alternate" type="text/html" href="https://wikiskola.se/index.php?title=Diskussion:Mittpunktsformeln_i_Python&amp;action=history"/>
	<updated>2026-05-11T18:01:07Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wikiskola.se/index.php?title=Diskussion:Mittpunktsformeln_i_Python&amp;diff=49856&amp;oldid=prev</id>
		<title>Slouca: Skapade sidan med &#039;== Bråkutskrift och hantering av felaktig input == &lt;pre&gt; from fractions import Fraction  print(&#039;\nCalculate the midpoint of a line :&#039;)  while True:     try:         x1 = floa...&#039;</title>
		<link rel="alternate" type="text/html" href="https://wikiskola.se/index.php?title=Diskussion:Mittpunktsformeln_i_Python&amp;diff=49856&amp;oldid=prev"/>
		<updated>2019-01-21T09:43:09Z</updated>

		<summary type="html">&lt;p&gt;Skapade sidan med &amp;#039;== Bråkutskrift och hantering av felaktig input == &amp;lt;pre&amp;gt; from fractions import Fraction  print(&amp;#039;\nCalculate the midpoint of a line :&amp;#039;)  while True:     try:         x1 = floa...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny sida&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Bråkutskrift och hantering av felaktig input ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from fractions import Fraction&lt;br /&gt;
&lt;br /&gt;
print(&amp;#039;\nCalculate the midpoint of a line :&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
while True:&lt;br /&gt;
    try:&lt;br /&gt;
        x1 = float(input(&amp;#039;The value of x (the first endpoint) &amp;#039;))&lt;br /&gt;
        break&lt;br /&gt;
    except ValueError:&lt;br /&gt;
        print(&amp;quot;Enter a valid number&amp;quot;)&lt;br /&gt;
        continue&lt;br /&gt;
while True:&lt;br /&gt;
    try:&lt;br /&gt;
        y1 = float(input(&amp;#039;The value of y (the first endpoint) &amp;#039;))&lt;br /&gt;
        break&lt;br /&gt;
    except ValueError:&lt;br /&gt;
        print(&amp;quot;Enter a valid number&amp;quot;)&lt;br /&gt;
        continue&lt;br /&gt;
while True:&lt;br /&gt;
    try:&lt;br /&gt;
        x2 = float(input(&amp;#039;The value of x (the second endpoint) &amp;#039;))&lt;br /&gt;
        break&lt;br /&gt;
    except ValueError:&lt;br /&gt;
        print(&amp;quot;Enter a valid number&amp;quot;)&lt;br /&gt;
        continue&lt;br /&gt;
while True:&lt;br /&gt;
    try:&lt;br /&gt;
        y2 = float(input(&amp;#039;The value of y (the second endpoint) &amp;#039;))&lt;br /&gt;
        break&lt;br /&gt;
    except ValueError:&lt;br /&gt;
        print(&amp;quot;Enter a valid number&amp;quot;)&lt;br /&gt;
        continue&lt;br /&gt;
        &lt;br /&gt;
&lt;br /&gt;
x_m_point = (x1 + x2)/2&lt;br /&gt;
y_m_point = (y1 + y2)/2&lt;br /&gt;
print();&lt;br /&gt;
print(&amp;quot;The midpoint of line is :&amp;quot;)&lt;br /&gt;
print( &amp;quot;The midpoint&amp;#039;s x value is: &amp;quot;,Fraction(x_m_point))&lt;br /&gt;
print( &amp;quot;The midpoint&amp;#039;s y value is: &amp;quot;,Fraction(y_m_point))&lt;br /&gt;
print();&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slouca</name></author>
	</entry>
</feed>