#9369 Problem: Last Three Integers
# Description:
# Write a program that accepts up to 100 integers one by one.
# The program should stop taking input if -1 is entered.
# Output the last three integers entered (excluding the -1).
# If fewer than three integers were entered, output all of them.
#
# Input Example:
# 30, 20, 10, 60, 80, -1
#
# Output Example:
# 10 60 80
print('-------------------------------------------------------------------------------------')
# 9370 Problem: List Index Search
# Description:
# Initialize a list A = ['J', 'U', 'N', 'G', 'O', 'L'].
# Take one character as input and print its index in the list.
# The first position is 0. If the character is not in the list, print "none".
#
# Input Example 1:
# L
# Output Example 1:
# 5
#
# Input Example 2:
# B
# Output Example 2:
# none
print('-------------------------------------------------------------------------------------')
# 9371 Problem: List Multiplication and Concatenation
# Description:
# 1. Read two integers, 'a' and 'b', from the first line.
# Create a list containing the value 'a' repeated 'b' times.
# 2. Repeat the same process for the second line with two more integers to create a new list.
# 3. Combine (concatenate) the two lists and print the result as shown in the output example.
#
# Input Example:
# 1 2
# 3 4
#
# Output Example:
# [1, 1, 3, 3, 3, 3]
print('-------------------------------------------------------------------------------------')
# 9372 Problem: Maximum and Minimum in a List
# Description:
# Continually read integers (between -999 and 999) and store them in a list.
# Stop taking input when 0 is entered.
# Find and output the maximum and minimum values among the entered integers (excluding 0).
#
# Input Example:
# 45, 19, 123, 58, 10, -55, 16, 0
#
# Output Example:
# MAX: 123
# MIN: -55
print('-------------------------------------------------------------------------------------')
# 9373 Problem: Filter Multiples of 5 and Calculate Statistics
# Description:
# Continually read up to 100 integers. Stop taking input when 0 is entered.
# 1. Create a list of integers that are multiples of 5 (excluding 0).
# 2. Print the filtered list.
# 3. Print the count (CNT), sum (HAP), and average (AVG) of these numbers.
# The average should be rounded to one decimal place.
#
# Input Example:
# 35, 10, 23, 100, 64, 51, 5, 0
#
# Output Example:
# [35, 10, 100, 5]
# CNT: 4
# HAP: 150
# AVG: 37.5
print('-------------------------------------------------------------------------------------')
To embed this project on your website, copy the following code and paste it into your website's HTML: