DEV Community

Cover image for My first innovative code !
Vishwa XII
Vishwa XII

Posted on

My first innovative code !

** Today I found how cloud in working, how it stores all the data of any type in a single storage place, I solve it in a 9 lines of python code, not accurately, but I tried logically !**

The code is :

import the required library to get any type of input from the user .

from ast import literal_eval

create a empty list, unlimited space.

cloud = []

taking any type of input and n numbers(using(split()) from the user.

file = input("Enter anything: ").split()

appending it in the cloud

for item in file:
try:

    cloud.append(literal_eval(file))
except:
    cloud.append(item)
Enter fullscreen mode Exit fullscreen mode

print(cloud)

I know this is dumb, but I hate to watch tutorials !`

`

Top comments (0)