mirror of
				https://github.com/theoludwig/programming-challenges.git
				synced 2025-09-11 23:11:21 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			336 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			336 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import sys
 | 
						|
 | 
						|
input_values: list[str] = []
 | 
						|
for value in sys.stdin:
 | 
						|
    input_values.append(value.rstrip('\n'))
 | 
						|
 | 
						|
 | 
						|
def get_acronym(sentence: str) -> str:
 | 
						|
    words = sentence.replace('"', '').split(' ')
 | 
						|
    acronym = ''
 | 
						|
    for word in words:
 | 
						|
        acronym += word[0].capitalize()
 | 
						|
    return acronym
 | 
						|
 | 
						|
 | 
						|
print(get_acronym(input_values[0]))
 |