GithubHelp home page GithubHelp logo

vascoalexander / codecomparison-csharp-python Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 895 KB

Home Page: https://vascoalexander.github.io/CodeComparison-CSharp-Python/

License: MIT License

C# 57.79% Python 42.21%

codecomparison-csharp-python's Introduction

CodeComparison-CSharp-Python

Description: This project contains a collection of simple coding exercises solved in both C# and Python. The goal is to compare the syntax and programming concepts of both languages. Each task is implemented in both C# and Python to highlight differences in syntax and approach.

Exercises (ENG)
Exercises (DE)

Project Progress

Usage

Setting Up the C# Environment

  1. Install .NET SDK: Ensure that the .NET SDK is installed. You can download it from dotnet.microsoft.com.

  2. Create a Project:

    cd CodeComparison-CSharp-Python/CSharp
    dotnet new console -n <ProjectName>
  3. Run the Program:

    dotnet run --project <ProjectName>

Setting Up the Python Environment

  1. Install Python: Ensure that Python is installed. You can download it from python.org.

  2. Create a Virtual Environment:

    cd CodeComparison-CSharp-Python/Python
    python -m venv venv
  3. Activate the Virtual Environment:

    • Windows:
      .\venv\Scripts\Activate
    • macOS/Linux:
      source venv/bin/activate
  4. Run the Program:

    python <FileName>.py

General Project Structure

CodeComparison-CSharp-Python/
│
├── CSharp/
│   ├── Basics/
│   │   ├── HelloWorld/
│   │   │   └── HelloWorld.cs
│   │   ├── Variables/
│   │   │   └── Variables.cs
│   │   ├── Conditionals/
│   │   │   └── Conditionals.cs
│   │   └── Loops/
│   │       └── Loops.cs
│   ├── DataStructures/
│   │   ├── Arrays/
│   │   │   └── Arrays.cs
│   │   ├── Lists/
│   │   │   └── Lists.cs
│   │   └── Dictionaries/
│   │       └── Dictionaries.cs
│   ├── Algorithms/
│   │   ├── Sorting/
│   │   │   └── Sorting.cs
│   │   ├── Searching/
│   │   │   └── Searching.cs
│   │   └── Recursion/
│   │       └── Recursion.cs
│   └── AdvancedTopicsMiscellaneous/
│       ├── OOP/
│       │   └── OOP.cs
│       ├── FileIO/
│       │   └── FileIO.cs
│       ├── ExceptionHandling/
│       │   └── ExceptionHandling.cs
│       ├── RegularExpressions/
│       │   └── RegularExpressions.cs
│       ├── DateAndTime/
│       │   └── DateAndTime.cs
│       ├── UnitTesting/
│       │   └── UnitTesting.cs
│       └── WebScraping/
│           └── WebScraping.cs
│   └── README.md
│
├── Python/
│   ├── Basics/
│   │   ├── HelloWorld/
│   │   │   └── HelloWorld.py
│   │   ├── Variables/
│   │   │   └── Variables.py
│   │   ├── Conditionals/
│   │   │   └── Conditionals.py
│   │   └── Loops/
│   │       └── Loops.py
│   ├── DataStructures/
│   │   ├── Arrays/
│   │   │   └── Arrays.py
│   │   ├── Lists/
│   │   │   └── Lists.py
│   │   └── Dictionaries/
│   │       └── Dictionaries.py
│   ├── Algorithms/
│   │   ├── Sorting/
│   │   │   └── Sorting.py
│   │   ├── Searching/
│   │   │   └── Searching.py
│   │   └── Recursion/
│   │       └── Recursion.py
│   └── AdvancedTopicsMiscellaneous/
│       ├── OOP/
│       │   └── OOP.py
│       ├── FileIO/
│       │   └── FileIO.py
│       ├── ExceptionHandling/
│       │   └── ExceptionHandling.py
│       ├── RegularExpressions/
│       │   └── RegularExpressions.py
│       ├── DateAndTime/
│       │   └── DateAndTime.py
│       ├── UnitTesting/
│       │   └── UnitTesting.py
│       └── WebScraping/
│           └── WebScraping.py
│   └── README.md
│
└── README.md

Contributing

You are welcome to contribute to this project! If you want to add a new exercise or suggest improvements, please create a pull request.

codecomparison-csharp-python's People

Contributors

vascoalexander avatar

Stargazers

 avatar Lord Broccoli avatar  avatar

Watchers

 avatar Lord Broccoli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.