> For the complete documentation index, see [llms.txt](https://www.pythonclassroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pythonclassroom.com/loops/for-loop-range-one-argument/for-loop-one-argument-problems.md).

# Problems

## Problem 1

Using a for loop, create a table of values for the function

$$
y=x^3
$$

for the values 0 to 10.&#x20;

```python
# use the header
print("Number\tCubed")
```

Create the header: print("Number\tCubed")

## Problem 2

Using a for loop, create a table of values for the function&#x20;

$$
y=x^2-2x+3
$$

for the values 0 to 10.&#x20;

```python
# use the header
print("x\ty")
```

## Problem 3

The formula for converting a temperature from Celsius to Fahrenheit is:&#x20;

$$
F=\frac{9}{5}C + 32
$$

```python
print("Celsius\tFahrenheit") 

```

Use a for loop to display a table of Celsius temperatures from 0 to 10 and their Fahrenheit equivalents. Before the for loop, add the following these lines to create your chart.

## Problem 4

Using a for loop, ask the user for 3 integers. Print the average of these numbers.

## Problem 5

You play Roblox and start with 500 Robux.

You want to buy 3 items for your estate. In a for loop, ask the user how much each item costs.

Display the total amount of Robux you have left.

## Problem 6

Using a for loop, ask the user for 5 integers. Print the third input.

## Problem 7

Using a for loop, ask the user for 5 numbers. Print the minimum of these numbers.

## Problem 8

Using a for loop, print odd numbers from 1 to 20.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.pythonclassroom.com/loops/for-loop-range-one-argument/for-loop-one-argument-problems.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
