Before we dive into making a GUI, we need to learn the basics of Pycharm.
PyCharm is an integrated development environment (IDE) for the Python programming language, created by JetBrains. It helps programmers code faster and smarter with features like intelligent code completion, debugging tools, and real-time error detection. PyCharm is also used for scientific computing, web development with frameworks like Django and Flask, and database management.
Copy this F String code below:
# Print the story using an f-string
story = f"""
Meet {robot_name}, the most advanced robot in the lab!
Today, {robot_name} decided to {action} at {speed} speed.
Suddenly, it spotted a {object_seen} and stopped immediately.
What will {robot_name} do next? Only you can decide!
"""
We will build the rest of the app.
robot_name = input("what is robot name?: ")
action = input("what is the action?: ")
speed = input("what is the robot speed?: ")
object_seen = input("what did the robot see?: ")
story = f"""
Meet {robot_name}, the most advanced robot in the lab!
Today, {robot_name} decided to {action} at {speed} speed.
Suddenly, it spotted a {object_seen} and stopped immediately.
What will {robot_name} do next? Only you can decide!
"""
print(story)