Ask coding questions

← Back to all posts
replit import clear
RubiksCubeworld

Back then, from replit import clear worked. Now it doesn't. What happened?

Voters
hiroshi030
RubiksCubeworld
Comments
hotnewtop
ash15khng

For some reason the replit module isn't preinstalled anymore, so you have to add the replit module using the package section at the sidebar before importing.

[deleted]

1) Add the replit package
2) import clear function from replit module
3) Use it!

An example:

ArjunSS1

@malvoliothegood that is good code but you can just do clear.lower() == 'y':

[deleted]

@ArjunSS1 Yes, yes!