String Reverser

  • Share this:

Code introduction


Reverses the input string.


Technology Stack : array, contextlib, csv, datetime, functools, json, locale, math, os, random, re, shutil, subprocess, sys, threading, time, typing, unittest

Code Type : String processing

Code Difficulty :


                
                    
import array
import contextlib
import csv
import datetime
import functools
import json
import locale
import math
import os
import random
import re
import shutil
import subprocess
import sys
import threading
import time
import typing
import unittest

def reverse_string(input_string: str) -> str:
    return input_string[::-1]