This file contains hidden or 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
| Class Stack: | |
| def __init__(self): | |
| self.items = [] | |
| def isEmpty(self): | |
| return self.items == [] | |
| def push(self,item): | |
| self.items.append(item) | |
| def pop(self.item): | |
| return self.items.pop() | |
| def peek(self): |
This file contains hidden or 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
| def gcd(m,n): | |
| while m%n!=0: | |
| m=oldm | |
| n=oldn | |
| m=old n | |
| n=oldm%oldn | |
| class Fraction: | |
| def __init__(self,top,buttom): | |
| obeb = gcd(top,buttom) | |
| self.num=top/obeb |
This file contains hidden or 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
| class Stack: | |
| def __init__(self): | |
| self.items = [] | |
| def isEmpty(self): | |
| return self.items == [] | |
| def push(self, item): | |
| self.items.append(item) | |
| def pop(self): | |
| return self.items.pop() | |
| def peek(self): |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
This file contains hidden or 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
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { |
OlderNewer