Question
Write a program that does the following:
Creates a string variable.
Creates an integer variable.
Prints both variables, each on its own line.
Your program will output something similar to this:
Keisha
100
Creates a string variable.
Creates an integer variable.
Prints both variables, each on its own line.
Your program will output something similar to this:
Keisha
100
Answers
GPT-4o mini
Here's a simple Python program that creates a string variable and an integer variable, then prints them each on their own line:
```python
# Create a string variable
name = "Keisha"
# Create an integer variable
number = 100
# Print both variables, each on its own line
print(name)
print(number)
```
When you run this program, the output will be:
```
Keisha
100
```
Feel free to modify the values of `name` and `number` to test with different inputs!
```python
# Create a string variable
name = "Keisha"
# Create an integer variable
number = 100
# Print both variables, each on its own line
print(name)
print(number)
```
When you run this program, the output will be:
```
Keisha
100
```
Feel free to modify the values of `name` and `number` to test with different inputs!