Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ First Steps | Basic Syntax
Introduction to Python with Cursor

bookFirst Steps

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

Python is a high-level programming language known for readability and simplicity, making it one of the easiest for beginners.

Created by Guido van Rossum and released in 1991, it has grown into one of the world's most popular languages, used in web development, data analysis, automation, and AI.

This course uses Python 3, the current supported version.

Cursor AI IDE

Cursor is a modern IDE for Python and many other languages. Its main advantage is the integration of AI tools directly into the coding workflow. You can use it both as a classic editor and as an assistant that helps write, refactor, or explain code. Try to use the suggested prompts:

Interface Overview

  • Editor window: the main area where you type and edit code;
  • Sidebar: access to files, project explorer, and settings;
  • Terminal: built-in console for running your scripts;
  • AI Panel: a space for chatting with the AI, generating snippets, or asking for explanations.

Useful Features

  • Inline AI: Press Cmd + K (Mac) or Ctrl + K (Windows/Linux) to ask AI for code suggestions right inside the editor;
  • Chat mode: Open a side panel with Cmd + L or Ctrl + L to talk to the AI about your code;
  • Explain code: Highlight a block, then ask the AI to explain what it does;
  • Refactor / Optimize: Select code and request improvements, alternative solutions, or performance tweaks;
  • Autocomplete: As you type, AI suggests the next line or even full functions.
question mark

What does the print() function do in Python?

正しい答えを選んでください

すべて明確でしたか?

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

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

セクション 1.  1

AIに質問する

expand

AIに質問する

ChatGPT

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

セクション 1.  1
some-alt