Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1043269
commit 173407f
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/python | ||
|
||
|
||
def kvadraticka(a, b, c): | ||
return 20 | ||
|
||
|
||
def kubicka(a, b, c, d): | ||
return 77 | ||
|
||
x = 16 | ||
y = 'ahoj' | ||
|
||
print 'Inicializuji se' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf8 -*- | ||
from __future__ import unicode_literals | ||
|
||
x = raw_input('zadej cislo > ') | ||
|
||
try: | ||
print 5*7 | ||
print 5*12 | ||
print 5*int(x) | ||
print 'dfd'*'fjdkfjdk' | ||
except ValueError: | ||
print('musíš zadat opravdu číslo') | ||
except KeyboardInterrupt: | ||
print('uživtel ukončil program') | ||
except: | ||
print('jiná chyba') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/python | ||
|
||
import rovnice | ||
from rovnice import y | ||
from rovnice import y as ypsilon | ||
|
||
import scipy.interpolate as inter | ||
|
||
from rovnice import * | ||
|
||
print rovnice.x | ||
print rovnice.y | ||
|
||
print rovnice.kvadraticka(3, 4, 17) | ||
|
||
y = 22 | ||
print y | ||
print rovnice.y |