Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class C1403:
- def __init__(self, n):
- self.n = int(n)
- self.base_sequence = [1, 4, 0, 3]
- def get_sequence(self):
- return ', '.join( str(self.base_sequence[i % len(self.base_sequence)]) for i in range(self.n) )
- n = input('Masukkan jumlah bilangan: ')
- c1403 = C1403(n)
- print(c1403.get_sequence())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement