You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐍 This library allows you to use Python methods such as print, input and more in C#!
Installation
type this command:
dotnet add package Py-Sharp
Alternative
Go to Releases or NuGet and install the latest .nupkg file.
put the .nupkg in any folder in your project (e.g. /libs, it doesn't matter)
type this command:
dotnet add package Py-Sharp -s ./
How to use
type this to use PySharp methods:
usingPySharp;
Example:
color.fore.yellow();intnumtofind=Int(input("type first number: "));print();intnum2tofind=Int(input("type second number: "));color.reset();print("Calculating...");time.sleep(2);intresult=numtofind+num2tofind;print("Result:",result);
XML hints
When pointing to a method from this library, you can see an XML hint.
It explains what this method is for
About
This library adds methods from python to C# (e.g. print or input)