Editor
# Welcome to DFT Python Compiler # Write your Python code here def greet(name): return f"Hello, {name}! Welcome to DFT Code Compiler." # Get user input name = input("Enter your name: ") # Print greeting print(greet(name)) # Example of a simple calculation a = 10 b = 20 print(f"\nThe sum of {a} and {b} is: {a + b}")
Output
Click "Run" to execute your code...