-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy patharray_generator.py
More file actions
26 lines (20 loc) · 528 Bytes
/
array_generator.py
File metadata and controls
26 lines (20 loc) · 528 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
# coding: utf-8
"""
Array Generator. — Developed by Arsh Leak.
$ wget https://github.com/4rsh/
HOW IT WORKS:
$ python array_generator.py
Enter the array name:
> name
Enter your string:
> array filled with the splitted string
Result:
Array name
name = ['array', 'filled', 'with', 'the', 'splitted', 'string']
"""
name = raw_input("\nEnter the name of your array.\n>")
items = raw_input("\nEnter your strings.\n>")
array = items.split()
print "\n\nArray name: ", name
print name, " = ", array