Skip to content

c7dl8p/SingleLine-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SingleLine-Calculator

Basic Calculator only in one line,

  1. while: Initiates a loop that continues execution as long as the specified condition holds (while 1 creates an infinite loop).

  2. input: Prompts the user to provide input, in this case, a basic mathematical operation.

  3. eval: Dynamically evaluates the entered mathematical expression, treating it as a Python expression.

  4. print: Outputs the result of the evaluated expression to the console.

  5. 1: The condition for the while loop, ensuring it runs indefinitely.

About

Basic Calculator only in one line,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages