Create 3.py
This commit is contained in:
		
							parent
							
								
									9e611363ce
								
							
						
					
					
						commit
						e503288818
					
				
							
								
								
									
										16
									
								
								15/b/3.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								15/b/3.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| txt = input().split() | ||||
| while txt[-1] != "###": | ||||
|    txt += input().split() | ||||
| amount = {} | ||||
| for i in txt: | ||||
|    if i.lower() in amount: | ||||
|       amount[i.lower()] += 1 | ||||
|    else: | ||||
|       amount[i.lower()] = 1 | ||||
| max = ["", 0] | ||||
| for i in amount: | ||||
|    if amount[i] > max[1]: | ||||
|       max = [i, amount[i]] | ||||
|    else: | ||||
|       pass | ||||
| print(max[0]) | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user