Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Writing Lines of Code | Introduction to Programming
/
Python Tutorial for Beginners
セクション 1.  1
single

single

bookWriting Lines of Code

メニューを表示するにはスワイプしてください

In this chapter, you will get your first experience writing actual code. Our hope is that you will see how easy it can be, but if it presents challenges, don't be discouraged.

The Print Statement

In Python, the command print tells the program to display words or numbers on the screen. Here is a line of code that tells Python to display the words 'Hello, kitties!'

print("Hello, kitties!")

print is a keyword -- that is, a word, that has special meaning for Python. It means, 'Display what is inside the parentheses'.

print is not capitalized. If you capitalize it, the program will not run.

Well, let's practice a little?

タスク

スワイプしてコーディングを開始

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  1
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt