# Day 1

1. print function
2. input function&#x20;
3. Usage of input function in another function
4. string manipulation
5. python variables
6. variable naming
7. Project : Band Name generator

```python
# write your code below 
print("hello, world")

# this is single line comment in python

# let's take input from the user using input() function
input("Enter your name: ")
# let's assign the input to a variable named username  to access it later
username = input("Enter your name once more please : ")

# let's print the username again
print(username)

# let's print the username in upper case
print(username.upper())
# let's print the length of the username
print("Length of username is : " + str(len(username)))

# let's see how we can print output in newline
print("hello, world\nhelloworld\ncharan")

# string concatenation
print("hello" + " " + "world")
```

## Band name Generator project

### Description :&#x20;

```markup
1. Create a  greeting for your program
2. Ask the user for the city that they grew up in and store it in a variable
3. Ask the user for a name of a pet and store it in a variable
4. combine the name of their city and pet and show them their band name
5. Make sure the input is always in title case (e.g. "new york" => "New York")
6. Make sure the input cursor shows on the new line
```

```python

print("Welcome to the Band Name Generator! 🔥🎉")
print("Let's find out your band name!")
print("--------------------------------------------------")
city = input("Please type the city you grew up in:\n")
print("--------------------------------------------------")
pet=input("Please type the name of your pet:\n")
print("--------------------------------------------------")
band_name = city.title() + " " + pet.title()
print("Your band name could be: " + band_name)

print("--------------------------------------------------")
print("Thanks for using the Band Name Generator!")
```


---

# Agent Instructions: 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:

```
GET https://charan-techjourney.gitbook.io/charan-techjournal/50-days-of-devops-ecommerce-microservices/100-days-of-python/day-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
