Giter Club home page Giter Club logo

ascii-art-2022's Introduction

zero-to-mastery

Zero to Mastery Open Source

Screenshot

ascii-art-2022's People

Contributors

9112michael avatar aeltouny avatar afraeim avatar ahmed-alsonaffi avatar aneagoie avatar avinnitesh avatar bankank avatar beneyal avatar dylanbuchi avatar jhaycee11 avatar juancwu avatar lucasocarvalhos avatar marcbarlett avatar marceljozwiak avatar mattcsmith avatar nguyenn95 avatar nirban07 avatar pritindra avatar r4topunk avatar rachelktyjohnson avatar rahul-learner avatar sammkodes96 avatar sayan-roy-729 avatar sayed-afnan-khazi avatar sayed-husain avatar talhaquddoos avatar tbot1738 avatar vantekken avatar yashraj2003e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ascii-art-2022's Issues

NameError: name 'CHAR_SET' is not defined

There is an error while converting image using webapp. It returns this error and I was not following along since a long tie so I dont know what is going on in the files. Please anyone review the error.
image

Custom CHAR_SET using list mode is not getting the right subarray of characters provided.

The way the current code is set up to be is splitting the giving CHAR_SET in the format [a,b,c,d] using a coma will yield a list of string as follow => ['[a','b','c','d]']. Then the code is getting a sub-array using list(CHAR_SET)[1:-1] will yield ['b', 'c']. As you can see a and d are missing from the list.

image

Solution:
Before splitting the string we should get a sub-string with only comma separating the characters.

CHAR_SET = "[a,b,c,d]"
CHAR_SET = CHAR_SET[1:-1] # this will be "a,b,c,d"

# now we can just split the string
CHAR_SET = CHAR_SET.split(",") # this will be ['a','b','c','d']

image

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.