I am working with Ruby every day, but i have an issue in Python. I was found this languages very similar... But I have some problems with migration from Ruby :)
Please, help me to convert this action in python:
string = "qwerty2012" (var, some_var, another_var) = string.unpack("a1a4a*") this should return three variables with unpacked values from string:
var = "q" # a1 some_var = "wert" # a4 another_var = "y2012" # a* Help me to represent it in Python Thank you!
stringstringis fine. The type in Python isstr.stringto something new would take it out of the namespace. Kind of bad practice.stringpackage - but yes it's probably not especially problematic.strings. Guess that says something about how often I find myself using it. Yeah, not a great idea to name something the same as a standard module.