Today I'm starting to write small programs in just a day, each weekend, and I'm currently dicking around with functions I've coppied out of a Python guide (The Computer Scientist one.), taking them and trying to get them to do something else. Something about the liniar reading through a book method is hard to stay focused on.
Total beginner question: I want to have a function take an input and then, once it's done it's thing, assign the output to a value. I'm also putting the function in a seperate file and importing it.
Focussing on the count_digits function.
from UsefulFunctions import verttext,count_digits
string = "Strings are Stringy!"
def verttext (input):
while index < len(input):
index += 1
def count_digits (input):
count = 0
count = count + 1
input = input / 10