Loading Playground...
an
HCL GUVI
product
๐
an
HCL GUVI
product
Choose a Job
Paths
Learn to code
Exams
Tech Blog
Blog
Guilds
Games
Fun Friday
โ๏ธ
Sign in
C Language
C++
C#
Java
DBMS
Python
Go Lang
Data Structures
Operating System
Computer Network
Git Guide
Linux
โ Code Courses
|
โก
StudyTonight Online Compiler
C
C++
Python
Java
Node.js
Reset
โถ
Execute Code
main.py
UTF-8
# StudyTonight Online Python Compiler import sys def fibonacci(n): a, b = 0, 1 result = [] for _ in range(n): result.append(a) a, b = b, a + b return result print("Python version:", sys.version.split()[0]) print("First 10 Fibonacci numbers:", fibonacci(10))
Standard Input (stdin)
Execution Output
// Output will be displayed here after you click "Execute Code"...