Verschönere Python
Online Code-Beautifier: Formatiere und verschönere Code direkt im Browser für bessere Lesbarkeit und Debugging, ohne Setup. Ideal für Lernen und Testen!
Tags: c c# c++ Code verschönern css go html java javascript perl php python ruby sql typescript
xxxxxxxxxx
import random
board = []
for x in range(0,5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
print "Let's play Battleship!"
print_board(board)
def random_row(board):
return random.randint(0,len(board)-1)
def random_col(board):
return random.randint(0,len(board[0])-1)
ship_row = random_row(board)
ship_col = random_col(board)
print ship_row
print ship_col
for turn in range(4):
guess_row = input("Guess Row:")
guess_col = input("Guess Col:")
if guess_row == ship_row and guess_col == ship_col:
print "Congratulations! You sunk my battleship!"
break
else:
if turn == 3:
board[guess_row][guess_col] = "X"
print_board(board)
print "Game Over"
print "My ship was here: [" + str(ship_row) + "][" + str(ship_col) + "]"
else:
if (guess_row < 0 or guess_row > 4) or (guess_col < 0 or guess_col > 4):
print "Oops, that's not even in the ocean."
elif(board[guess_row][guess_col] == "X"):
📚 Kursvorschläge, speziell für dich ausgewählt

Build 10 JavaScript Projects in less than 6 Hours .
Boost your coding skills : Create 10 Practical and useful apps using JavaScript in less than 6 h…

20 Web Projects With Vanilla JavaScript
Build 20 mini frontend projects from scratch with HTML5, CSS & JavaScript (No frameworks or librari…

Python Certification Training (beginner to expert)
Learn Python programming language from scratch to advanced level. Prepare for Python Certification …

Python from Zero-to-Hero (Beginner Level)
Get familiar with Python, a modern programming language and start coding your first programs

Python for Beginners: Complete Python Programming
Python: Learn to code with Python programming language. Start coding in Python. Python Programming …

Zero to Hero hands-on mastery on HTML5 JavaScript & ES6
Become a pro HTML5 and modern JavaScript developer by implementing every concepts through project b…

Python Course:Learn Python By building Games in Python.
Learn to code In Python by Develop & Build Games in Python, Python Basics, Python OOP, Python Games…

TypeScript for Professionals - by Basarat
Learn all about the TypeScript type system - taught by a Microsoft MVP

JavaScript Web Projects: 20 Projects to Build Your Portfolio
Modern HTML5, CSS3, and JavaScript to build Responsive and Mobile Friendly projects for your dream …

Beginners Guide to JavaScript Dynamic HTML interaction
Quick Crash course about using JavaScript to create Dynamic Web content Introduction to the Documen…

C, C++, Python and Ruby Programming
C, C++, Python and Ruby python programming Courses with Practical Examples

The Complete Python and JavaScript Course: Build Projects
Want to learn ES6 development and TensorFlow stock market prediction modeling? Build your first web…

React & TypeScript Chrome Extension Development
Learn Google Chrome Extension development using modern web frameworks. JavaScript, React, TypeScrip…

Python Certification Exam PCEP-30-02 - Preparation (2024)
Check your basic Python skills to pass Python PCEP-30-02 or prepare for entry-level Python intervie…

Kids Coding - Introduction to HTML, CSS and JavaScript!
Your kid could be the next Zuckerberg!

The 10-Day Python Bootcamp for Engineers and Scientists 2025
Bite-sized chunks of learning: practical coding skills for working with data, visualisation, modell…

The complete guide to testing javascript & node applications
Become job ready for advanced nodejs development by mastering testing from scratch, jest, cypress, …

Become A Certified JavaScript Developer- Practice Tests
The Complete JavaScript Developer Course Exam

Proficiency In Javascript
Learn And Master Javascript Step By Step and Build A Project At The End

Learn ECMA Script 6+ with Modern JavaScript Explained
Start learning the modern language of JavaScript with ECMA Script. Beginner Guide to Building Moder…

Create an HTML5 Canvas game JavaScript MouseClick Popper
Build a JavaScript Canvas Game from Scratch Bubble Popping game HTML5 Canvas Step by step coding to…

3D Programming with JavaScript and the Three.js 3D Library
Create 3D computer graphics, using webgl in a cross-browser environment. Learn about 3D Graphical s…

TypeScript for Beginners: Mastering TypeScript Fundamentals
Unlock the Power of TypeScript for Modern Web Development

Build TypeScript smart contracts and React.js dapps for NEAR
Build a React dapp to connect to Hello World TS contract on NEAR

Modern JavaScript Basics in 1 Hour for beginners
Learn the fundamentals of Modern JavaScript in just 1 Hour

Complete Guide to Elasticsearch 8 with Python
Master Elasticsearch with Python ! Learn indexing, querying, and data manipulation for powerful sea…

Learn ASP NET with Bootstrap,Entity Framework,JavaScript,C#
Learn to Build Production based Web Applications with Microsoft’s ASP.NET, C#, Entity Framework, Ja…

React JS & TypeScript: Build Real Projects + Redux Toolkit
Build Real Apps with React Hooks, Redux Toolkit, React Query, Zustand & TypeScript - Hands-On Proje…

JSE – Certified Entry-Level JavaScript Programmer - Exams
Comprehensive Mock Exams to Prepare for the JSE Certified Entry-Level JavaScript Programmer Certifi…

Typescript Bootcamp: Beginner To Advanced (2024 Edition)
Learn Typescript theory in depth, then apply it in practical projects: Node REST API with Express, …

JavaScript 45-Day Bootcamp: Learn Web Development in 2025
You will learn JavaScript: Web Development, HTML, CSS, Node, React, Web Applications + more with Ja…

TypeScript 5 for developers
Use TypeScript like a pro! Quickly learn basic and advanced Typescript and practice it with Node, E…

Learn the basics of HTML, CSS, JavaScript and React
Build modern websites using HTML, CSS, JavaScript and React. Lay your foundation into the field of …

Learn JavaScript in unity 3d in 1 hour for beginners
Most of John Bura's courses are on sale for 9 dollars! https://www.udemy.com/u/johnbura/ Sale ends …

JavaScript Objects and OOP Programming with JavaScript
Use objects to create amazing things with JavaScript power up your applications OOP JavaScript codi…

Master the Python interview (special banks & startups)
Ace your interview questions and get hired as a professional Python developer in prestigious compan…

Database Programming with Python
Learn how to integrate free and enterprise databases into your Python workflow including SQLite, My…

React & TypeScript - The Practical Guide
Build type-safe React apps & use TypeScript to enhance your components, state management, Redux & s…

Learn How To Extract Web Data with Python and Beautiful Soup
Extract (scrape) data from websites

Docker Essentials for Python Developers
Learn Docker, Containers and DevOps

Applied Data Science with Python Specialization
Master Class of Data Science with Case Studies using Python

JavaScript: Coding Challenge Bootcamp
Get to solve coding challenge using JavaScript and elaborate you problem solving skill as well as y…

Javascript Basics 2023
Begin your journey as a JavaScript developer by writing your first program, mastering the basics.

Programming Fundamentals in TypeScript
Practical TypeScript programming to learn the TypeScript from basic to advanced with elegant TypeSc…

JavaScript Introduction to Object Oriented JavaScript
Learn about the JavaScript object model and using the concepts of object oriented programming in Ja…

Learn Python with Dr. Sultan
Master Python Basics, Math & Sympy Libraries, and .py to .exe Conversion with 6+ Hours of Lessons &…

Data Analytics Real World Projects using Python
Start your Data Analytics Career with Python by solving Real-world case-studies ! Improve your Data…

Angular 17, Python Fast API and MySQL Full-Stack App
learn to create a full stack web application from scratch using Angular 17, Python Fast API and MyS…

Ethical Hacking: Learn The Art of Hacking Using Python3
Learn to hack windows OS using Backdoor and Ransomware created from scratch using Python. Completel…

AJAX API exercises JavaScript Trivia web application
Create a Trivia Application using JavaScript and AJAX retrieving data from various web API endpoints

600+ TypeScript Interview Questions Practice Test
TypeScript Interview Questions and Answers Preparation Practice Test | Freshers to Experienced | De…

JavaScript Developer Interview & 1300+ Practice Tests
Master JavaScript From Basics to Advanced with Comprehensive Practice Questions Covering Best Pract…

JavaScript Zero to Hero 2023
Learn How to Program in JavaScript and its frameworks

Building News Website with Javascript, React, and News API
Learn how to build news website with Javascript, React, and News API

Learn JavaScript Fundamentals Phase 1
We created Byte Sized learning modules to help you learn the FUNDAMENTALS of JavaScript. You will b…

Stepping up to TypeScript: Fundamentals
Upgrade and accelerate your coding skills by learning TypeScript.

Python Programming for MLOps - Production Environment - 2025
Optimize MLOps, AIOps, and DevOps Workflows with Python - Essential skills for productionalization

Practical JavaScript & TypeScript Mastery with Projects
Learn to build real world applications and websites using JavaScript and TypeScript features

Microsoft 70-480 Programming in HTML5 with JavaScript & CSS3
Get a hands-on in depth experience

Technical Analysis with Python for Algorithmic Trading
Use Technical Analysis and Indicators for (Day) Trading. Create, backtest and optimize TA Trading S…

React Redux Ultimate - State Management (/w Typescript, JWT)
Mastering Redux, React Query, JWT Authentication, Firebase, Typescript and learn a ton of advanced …

Learn JavaScript by creating 7 useful Apps
Create 7 Complete Web Apps using JavaScript from Scratch.

Make 10 Pro Advanced GUI Applications in Python
Learn to make Professional Level Python Applications and make yourself a True Python App Developer

Solana Blockchain Developer Foundation - Rust and Typescript
Create dApps, Defi, NFTs, Solana Tokens. With Web3.js, Metaplex, Smart Contracts, React, Typescript
![[Master Class] Deep Dive into React 18 + Typescript](https://img-c.udemycdn.com/course/480x270/5352754_9358_2.jpg)
[Master Class] Deep Dive into React 18 + Typescript
Completely understand how React 18 works with Typescript

JavaScript and TypeScript: The Complete Guide (Vite & Node)
Fundamentals of Web Development with JavaScript and TypeScript

Master Parallel & Concurrent Programming Using Python:2 in 1
Dive head-first into the world of concurrency in Python & build modern software
![Build Web Apps with Nuxt.js 3: Master TypeScript & API [New]](https://img-c.udemycdn.com/course/480x270/6457785_5adc_2.jpg)
Build Web Apps with Nuxt.js 3: Master TypeScript & API [New]
Build Web Apps with Nuxt.js: Integrate Composition API, Pinia, TypeScript, Server-Side APIs, and SE…

Fraud Detection in Python
Build an effective machine learning project to detect instances of financial crime.

JavaScript Pro: From Basics to Real-World Applications
Learn Modern JavaScript by building real-world Projects! JavaScript ES6+, OOP, Async JavaScript, We…

Make 10 Advanced Professional Applications in JavaScript
Learn to make real time Applications in JavaScript.

TypeScript Kompaktkurs
Perfektionieren Sie Ihre JavaScript-Projekte mit TypeScript: Lernen Sie alles über Basistypen, Gene…

Comprehensive TypeScript
Master TypeScript and its many useful features. Learn interfaces, classes, types and functions, and…

The complete Angular Course , Typescript included.
Take you App to the next level using Angular and Typescript.

YOLO11 & YOLOv12: Object Detection & Web Apps in Python 2025
Learn Custom Object Detection, Tracking, and Pose Estimation with YOLO11 & YOLOv12, and Build Web A…

Python Development Essentials
Python Development Essentials course by MTF Institute

TypeScript from Scratch: Go from zero to hero in TypeScript
With this course you will learn how to use TypeScript, starting from scratch i.e absolute beginner …

Animating with the JavaScript Web Animations API
Give your web animations super-powers by with the JavaScript Web Animations API

Python Programming: Build a Recommendation Engine in Django
Collaborative Filtering with Python, Celery, Django, Worker Processes, Batch Predictions, SurpriseM…

NextJS 15 Ultimate - Build a Music Player App (TypeScript)
Master Next.js, Auth.js and React by Building Music Player App

Design Patterns in TypeScript
Write cleaner code and enhance your development skills with TypeScript design patterns

Modern JavaScript ES6
ES6 JavaScript: The Key to Modern Web Development ,JavaScript features, (ES6)

Learn Serverless Computing With AWS Lambda! JavaScript/Node
Learn Cloud Computing and Severless Computing with AWS Lambda! Interact with databases, servers and…

Upgrade Dein JavaScript mit TypeScript
Lerne typsicheres u. wartbares JS: Basistypen, Klassen, Interfaces, Generics, Utility-Typen uvm, fü…

CS121 Learn JavaScript Programming
JavaScript - Object Oriented Programming made ridiculously easy

AI React NextJS TypeScript Full Stack Business Directory App
Build Google Generative AI Powered Local Business Directory App for Real World with React NextJs Ty…

Building AI App with React NextJs TypeScript Google & Stripe
Master AI apps with React NextJs TypeScript MongoDB Tailwind ShadcnUI Google Gemini Stripe Subscrip…

Building APIs doing TDD in Node and Typescript (and Jest)
A practical example on how to build REST API doing TDD using Nodejs Typescript and jest (and mongod…

Build 10 JavaScript Projects With Claude AI - Learn With AI
Development JavaScript Projects with Claude AI with No Programming Skill

Modern JavaScript for React Developer - Zero to Advanced
This course is your complete roadmap to mastering modern JavaScript—from the basics to advanced con…

The Python for Absolute Beginners Bootcamp
No coding experience needed. Learn Python and kickstart your programming career in data or software…

Software Libraries Explained - Python Programming for All
Learn to program and use Matplotlib and NumPy! Make 2D and 3D graphs with math. Make predictions wi…

Try Python Flask API Development 2025
Start learning Flask API development in 2025

Real-World TypeScript Unit Testing
Create unit tests for real world typescript system with few modules using vitest or jest

Mastering Python: 0/1 -> 1/0 | Beginner to Advanced
Ace Python from scratch with hands-on exercises! Learn programming using various python packages

React+TypeScript: Build a Draggable Task Management Project
Master React Hooks, TypeScript & Performance Optimization: Create a Powerful, Efficient & User-Frie…

Mastering (GIS) with ArcGIS Maps SDK for JavaScript
Learn to create dynamic web maps with JavaScript using the ArcGIS Maps SDK. Master GIS concepts, sp…

TypeScript Mastery: From Basics to Advanced - Practice Tests
Master TypeScript Syntax, OOP, Async Programming and Frameworks with Real-World Scenarios and Testi…

Automate Things With Python: WhatsApp Automation
How to send WhatsApp messages from excel sheet automatically via Python including image/video/audio…

LangChain JS - Practical Guide for Javascript Developers
Getting Started with LangChain for Javascript

Ethical Hacking mit Python in der Praxis: Der Komplettkurs
Werde White Hat Hacker: Lerne PenTesting, Password Cracking, Network Hacking, Kali Linux, Keylogger…

(Top 5%) JavaScript quiz - LinkedIn Assessment Answers
Weekly updated LinkedIn skill assessment quiz in HTML, React, CSS, JavaScript, NodeJS ( 2022 )

ABSOLUTE BEGINNER'S GUIDE TO PYTHON
Beginner's guide to learning and programming in Python language

Master Marketing Analytics with Python and Machine Learning
Level up your marketing career with data analytics skills | Learn Python & ML to optimize your mark…

Professional RESTful API Design using Python Flask
Learn the fundamental concepts and build a RESTful API application from scratch

Learn Pro Advanced Modern JavaScript Programming
Learn Modern and Advance Level JavaScript Programming with many Real Time Examples

Hands on Computer Vision with OpenCV 4 & Python 3 | Beginner
Image Processing , Computer Vision, OpenCV, Object detection, Face Detection, Practical Examples wi…

TypeScript: From Zero to Expert (2024)
Learn how to create web applications with TypeScript, with this mega course that will teach you by …

Learn website development using HTML, CSS, JavaScript & PHP
Become a Web developer | Master HTML5, CSS3, JavaScript, jQuery, Bootstrap4, PHP & MySQL!

Practical Data Analysis and Visualization with Python
Data Analytics, Visualization and Data Science for Everyone. Build Machine Learning Models to Solve…

OpenAI Assistants using OpenAI Python API
Learn how to use OpenAI Assistants API and its tools - Code interpreter, Knowledge retrieval and Fu…

JavaScript Basics and Core Concepts – Learn in Under 2 Hours
Master the Essentials of JavaScript for Testers and SDETs

React TypeScript Fresher Level - Quiz App Mastery Challenge
Learn and master core React skills to get a full-time job by building a quiz app

Mastering Playwright Test Automation with Typescript
Installing Playwright, Setting up Visual Studio Code, Automation testing setup, Building robust dev…
![TypeScript Interview Mastery with 300+ Questions : [NEW]](https://img-c.udemycdn.com/course/480x270/5555738_7750_2.jpg)
TypeScript Interview Mastery with 300+ Questions : [NEW]
Master TypeScript Programming and Ace Interview with 300+ Unique Interview Questions with Explana…

Best Bundle Of HTML,CSS, JAVASCRIPT, NODE JS, NPM, JSON, SQL
HTML5 CSS3 , Front End & Back End Development, CSS Advance, Bootstrap, JavaScript, NodeJS, NPM, JSO…

Der ultimative JavaScript Komplettkurs
Lerne JavaScript nach den aktuellen Standards und erprobe dein Wissen in einem riesigen Praxis-Proj…

Pubnub - Javascript Realtime Maps Geolocation Tracking
Pubnub Realtime Maps for Beginners with Javascript, Google Maps API and Pubsub Capability

Learn HTML, CSS and JavaScript for absolute beginners
Master the Basics of Web Development: HTML, CSS, and JavaScript for Absolute Beginners

Learn the MERN Stack with TypeScript
Build a Real World Application with NodeJS, TypeScript and React

Practical Flash Loan Arbitrage with Solidity and TypeScript
Get started on Flashloan Arbitrage on Polygon with Solidity and Typescript.

20 Web Projects: HTML, CSS & Javascript
Sharpen your skills by building 20 quick, unique & fun projects. A 20-Day Journey into HTML, CSS, &…

Beginner's Guide to React, Next.js, and TypeScript
The only course you need to become a pro in Typescript, React, and Next.js

Web scraping and data analysis with Python
A practical introduction applied to ESG rating and stock market data

Certified JavaScript Developer JSNAD Exam Practice Test
Assess your knowledge and get ready to pass the Certified JavaScript Developer JSNAD certification …
Einführung
Willkommen bei unserem Online-Tool zur Code-Formatierung! Es wurde entwickelt, um Ihnen zu helfen, Ihren Code einfach zu formatieren, zu bereinigen und zu organisieren. Egal, ob Sie mit Markup, Frontend- oder Backend-Sprachen arbeiten, wir haben das passende Tool für Sie. Unser Tool unterstützt 22 beliebte Programmiersprachen, und Sie können die vollständige Liste in der Tabelle rechts sehen.
Angetrieben von fortschrittlichen Beautifiers, bietet Ihnen dieses Tool die Flexibilität, Ihren Code genau so zu gestalten, wie Sie es möchten. Wir aktualisieren die Beautifiers regelmäßig, um sicherzustellen, dass Sie immer die beste Leistung und die neuesten Funktionen erhalten.
So verwenden Sie es
Der Einstieg ist einfach:
- Code einfügen oder hochladen: Sie können Ihren Code direkt in den Editor einfügen oder eine Datei über die Hochladen-Schaltfläche hochladen. Überprüfen Sie die unterstützten Dateitypen in der Liste rechts.
- Formatieren Sie Ihren Code: Wählen Sie Ihre bevorzugten Einstellungen und lassen Sie das Tool seine Magie wirken, um Ihren Code zu bereinigen und zu verschönern.
- Speichern oder teilen: Sobald Ihr Code formatiert ist, können Sie das Ergebnis herunterladen, über einen einzigartigen Link teilen oder es in Ihrem Konto speichern, indem Sie sich mit Google oder GitHub anmelden.
Das war's! In nur wenigen Klicks ist Ihr Code schön organisiert und einsatzbereit.
Beispiele
Unformatiert:
#include <stdio.h>
int main()
{
int n, count, sum = 0;
printf("Geben Sie den Wert von n (positive ganze Zahl) ein: ");
scanf("%d",&n);
for(count=1; count <= n; count++){sum = sum + count;}
printf("Die Summe der ersten %d natürlichen Zahlen ist: %d",n, sum);
return 0;
}
Nach der Formatierung:
#include <stdio.h>
int main() {
int n, count, sum = 0;
printf("Geben Sie den Wert von n (positive ganze Zahl) ein: ");
scanf("%d", &n);
for (count = 1; count <= n; count++) {
sum = sum + count;
}
printf("Die Summe der ersten %d natürlichen Zahlen ist: %d", n, sum);
return 0;
}
Unterstützte Sprachen
# | Sprache | Beautifiers | Unterstützte Upload-Dateien |
---|---|---|---|
1 | C | ClangFormat | **/*.c **/*.cats **/*.cl **/*.h **/*.idc |
2 | C# | Pretty Diff | **/*.cs **/*.cake **/*.cshtml **/*.csx |
3 | C++ | ClangFormat | **/*.cpp **/*.c **/*.c++ **/*.cc **/*.cp **/*.cxx **/*.h **/*.h++ **/*.hh **/*.hpp **/*.hxx **/*.inc **/*.inl **/*.ino **/*.ipp **/*.re **/*.tcc **/*.tpp |
4 | CSS | Pretty Diff | **/*.css |
5 | ColdFusion | Pretty Diff | **/*.cfc **/*.cfm **/*.cfml |
6 | Go | Gofmt | **/*.go |
7 | GraphQL | Prettier | **/*.gql **/*.graphql |
8 | HTML | Pretty Diff | **/*.htm **/*.html **/*.xhtml |
9 | HTML+ERB | Pretty Diff | **/*.html.erb **/*.erb |
10 | JSX | Pretty Diff | **/*.js **/*.jsx |
11 | Java | Pretty Diff | **/*.java |
12 | JavaScript | Pretty Diff | **/*.js **/*.es **/*.es6 |
13 | Less | Pretty Diff | **/*.less |
14 | Objective-C | ClangFormat | **/*.h **/*.m **/*.mm |
15 | PHP | PHP-CS-Fixer | **/*.php |
16 | Python | Black | **/*.py |
17 | Ruby | RuboCop | **/*.rb |
18 | SCSS | Pretty Diff | **/*.scss |
19 | SQL | sqlformat | **/*.sql |
20 | SVG | Pretty Diff | **/*.svg |
21 | TypeScript | Pretty Diff | **/*.ts **/*.tsx |
22 | XML | Pretty Diff | **/*.xml **/*.xhtml |