Python Bootcamp : 100 Days of code - Day 1
- emsuraki5
- Aug 20, 2025
- 3 min read
Updated: Aug 21, 2025
Revisions Day 1
print() Function
The print() function prints the specified message to the screen, or other standard output device. Message can be a string, or any other object. Object will be converted to string before written to the screen:
print("Hello World!")input() Function
Asks the user for input. You can have multiple inputs. Python will stop executing at each of them, waiting for user input.
username = input("What is your name?")
print(f"Hello {username}")Variables
Variables are containers for storing data values. Rules for Python variable names:
- A variable name must start with a letter or the underscore character
- A variable name cannot start with a number
- A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _)
- Variable names are case-sensitive (age, Age, and AGE are three different variables)
- A variable name cannot be any of the Python keywords
String Concatenation
To concatenate/combine two strings together, a + operator is used:
print("Hello " + input("What is your name?: ") + "!")
Band Name Generator
The challenge for Day1 is to create a band name derived from the user input of the city where he/she grew up in and the name of their pet. The script will then combine the 2 together and suggest a name for the band. Tasks are:
Create a greeting for the program
Ask the user for the city that they grew up in and store it in a variable
Ask the user for the name of the pet and store it in a variable
Combine the name of their city and pet and show them their band name
Make sure the input cursor shows on a new line
Here are the 2 Python scripts where:
the first one is a basic using the print() function, variables and string manipulations to achieve what was intended:
#! /usr/bin/env python3
"""
Creates a band name by combining the user's hometown with their pet's name.
"""
print("Welcome to the Band Name Generator!")
hometown = input("What's the name of the city you grew up in?\n")
pet_name = input("What's the name of your pet?\n")
band_name = f"{hometown} {pet_name} Band"
print(f"Your band name could be: {band_name}")When done, run the chmod command for the script to be executable and then run the script:
# Make script executable
chmod +x band_name.py
# Run the script
./band_name.pyYou should get something similar to this:

Using functions, I also created a script to achieve the same output:
#! /usr/bin/env python3
"""
Creates a band name by combining the user's hometown with their pet's name.
"""
def bname_generator():
hometown = input("What's the name of the city you grew up in?\n")
pet_name = input("What's the name of your pet?\n")
return f"{hometown} {pet_name} Band"
def main():
print("Welcome to the Band Name Generator!")
band_name = bname_generator()
print(f"Your band name could be: {band_name}")
if __name__ == "__main__":
main()As per above, once done run the chmod command and the script to test if it works:
# Make script executable
chmod +x band_name2.py
# Run the script
./band_name2.pyOutput was similar to the first one:

Summary
Day 1 done and 99 more to go. Today was all about confirmations on print(), variables, input(), len(), string manipulations and concatenations. Stay tuned as will be blogging about them as I cover each day's challenges. Hopefully it can help you as well on your Pythonic learning journey!!

Comments