import random

class Greetings:
	
	text = []
	idx = 0
		
	def pagi(self):
		self.text = ['Sel<NAME>!',
					'Hello, good morning Sir. How are you today?',
					'Selamat pagi Pak, hope nice day for you.']
					
		idx = random.randint(0,len(self.text)-1)
		#print(self.text[idx])
		
	def siang(self):
		self.text = ['Selamat siang! Nice to see you.',
					'Hello, selamat siang! Bagaimana kabar Anda hari ini?']
					
		idx = random.randint(0,len(self.text)-1)
		print(self.text[idx])
	
	"""
	def sore(self):
		self.text = ['Hi Pak, Sel<NAME>!',
					'Hi, good noon. how\'s your day?',
					'Hallo, selamat siang.']
					
		idx = random.randint(0,len(self.text)-1)
		print(self.text[idx])
	
	def malam(self):
		self.text = ['Hi Pak, <NAME>!',
					'Hi, good noon. how\'s your day?',
					'Hallo, selamat siang.']
					
		idx = random.randint(0,len(self.text)-1)
		print(self.text[idx])
	"""
salam = Greetings()
#salam.pagi()
salam.siang()

		
import random

class Greetings:
	
	text = []
	idx = 0
		
	def pagi(self):
		self.text = ['Sel<NAME>!',
					'Hello, good morning Sir. How are you today?',
					'Selamat pagi Pak, hope nice day for you.']
					
		idx = random.randint(0,len(self.text)-1)
		#print(self.text[idx])
		
	def siang(self):
		self.text = ['Selamat siang! Nice to see you.',
					'Hello, selamat siang! Bagaimana kabar Anda hari ini?']
					
		idx = random.randint(0,len(self.text)-1)
		print(self.text[idx])
	
	"""
	def sore(self):
		self.text = ['Hi Pak, Sel<NAME>!',
					'Hi, good noon. how\'s your day?',
					'Hallo, selamat siang.']
					
		idx = random.randint(0,len(self.text)-1)
		print(self.text[idx])
	
	def malam(self):
		self.text = ['Hi Pak, <NAME>!',
					'Hi, good noon. how\'s your day?',
					'Hallo, selamat siang.']
					
		idx = random.randint(0,len(self.text)-1)
		print(self.text[idx])
	"""
salam = Greetings()
#salam.pagi()
salam.siang()

		
#print(self.text[idx]) def sore(self):
 		self.text = ['Hi Pak, Sel<NAME>!',
 					'Hi, good noon. how\'s your day?',
 					'Hallo, selamat siang.']
 					
 		idx = random.randint(0,len(self.text)-1)
 		print(self.text[idx])
 	
 	def malam(self):
 		self.text = ['Hi Pak, <NAME>!',
 					'Hi, good noon. how\'s your day?',
 					'Hallo, selamat siang.']
 					
 		idx = random.randint(0,len(self.text)-1)
 		print(self.text[idx]) #salam.pagi()