Today’s post is Day 2. Using the input function, you can receive data entered by the user in the console. Applying this, the content entered can be stored in a variable set by yourself. In today’s Day 2 challenge, we stored the input from the input function in a variable and then printed it using the print function. When you print with the print function, it seems that a line break is added in the console. I wonder if this is a default function. In the code created this time, a line break is entered each time, so the sentence looks a little strange. I want to avoid using the three double quotes I learned last time to prevent them from being broken down. I wonder if variables can be output in the same way. I feel that there is still a lot to learn about how to solve this and the features of the print function. That’s how my day went today.
print文は奥が深そうです、、。明日のDay3も頑張ります!
コメントを残す