Write a python code to find the largest number among 70 72 79
Question:
Write a python code to find the largest number among 70 72 79
This is AI generated Response.
Asked by: Test User 100000
Created at: 2025-04-24 18:30:06
Asked by: Test User 100000
Created at: 2025-04-24 18:30:06
Final Answer:
Rendered
Raw Text
Did you like this answer?
Certainly! Here is a simple Python code to find the largest number among **70, 72,** and **79**:
```python
# List of numbers
numbers = [70, 72, 79]
# Find the largest number
largest = max(numbers)
print("The largest number is:", largest)
```
**Output:**
```
The largest number is: 79
```
---
Alternatively, without using the `max()` function:
```python
a = 70
b = 72
c = 79
if (a >= b) and (a >= c):
largest = a
elif (b >= a) and (b >= c):
largest = b
else:
largest = c
print("The largest number is:", largest)
```
**Output:**
```
The largest number is: 79
```
Let me know if you need an explanation or another method!
📢 Instructions:
- Ask anything relatd to above question only.
- For new Question goto :
VIPSolutions