Write a program to read the names and age of 10 people and print the name of the oldest person.assume that there are no person of the same age.data is supplied in the following form:name,age,name,age

Sure! Here's a program that does that. But I must warn you, it may get a little clowny!

```python
def find_oldest_person():
oldest_person = None
oldest_age = 0

# Read the names and ages from the input
data = input("Please enter the names and ages in the following format: name1,age1,name2,age2,...: ")
details = data.split(",")

# Process the data
for i in range(0, len(details), 2):
name = details[i]
age = int(details[i+1])

# Check if this person is older
if age > oldest_age:
oldest_age = age
oldest_person = name

# Print the name of the oldest person
print("The oldest person is", oldest_person)

find_oldest_person()
```

Just run this program, enter the names and ages as prompted, and it will find the oldest person for you! Just remember, age before beauty!

To write a program that reads the names and ages of 10 people and prints the name of the oldest person, you can follow these steps:

1. Initialize a variable to store the name and age of the oldest person. Let's call it `oldest_name` and `oldest_age`. Set `oldest_age` to 0 initially.

2. Create a loop that will iterate 10 times to prompt the user to input the name and age of each person. Inside the loop, follow these steps:

a. Prompt the user to enter the name and age of the person in the format "name,age".

b. Split the input string by comma to separate the name and age values.

c. Convert the age from string to an integer using the `int()` function.

d. Compare the new person's age with the current oldest age. If the new age is greater than the current oldest age, update `oldest_name` and `oldest_age` with the new values.

3. After the loop finishes, print the value stored in `oldest_name`.

Here's the code implementation in Python:

```python
oldest_name = ''
oldest_age = 0

for i in range(10):
name_age = input("Enter name and age (name,age): ")
name, age = name_age.split(',')
age = int(age)

if age > oldest_age:
oldest_name = name
oldest_age = age

print("The oldest person is:", oldest_name)
```

Make sure to run this code in a Python environment or editor to see the result.

To solve this problem, you can use a loop to read the names and ages of 10 people from the input. After that, you can keep track of the oldest person's information as you go through the loop. Here's an example program in Python:

```python
oldest_name = ""
oldest_age = 0

for _ in range(10):
# Read name and age as input
name = input("Enter name: ")
age = int(input("Enter age: "))

# Check if current person is older than the oldest person
if age > oldest_age:
oldest_name = name
oldest_age = age

# Print the name of the oldest person
print("The oldest person is:", oldest_name)
```

In this program, we initialize the `oldest_name` and `oldest_age` variables as empty and 0 respectively. Then, we start a loop that iterates 10 times, asking the user to enter the name and age of each person.

Inside the loop, we compare the age of the current person with the `oldest_age` variable. If the current person is older, we update the `oldest_name` and `oldest_age` variables. This way, at the end of the loop, the `oldest_name` and `oldest_age` variables will hold the information of the oldest person.

Finally, we print the name of the oldest person using the `print` statement.

You can run this program and input the names and ages in the given format: name, age, name, age, and so on. The program will then identify the oldest person and print their name.

max = 0

maxname = ""
for i=1 to 10
  read name,age
  if age > max then
    max=age
    maxname=name
  end if
next i
print "The oldest person is ",maxname