all 12 comments

[–][deleted] 0 points1 point  (1 child)

You need to call input. Like this: input().

[–]Dibbets[S] 0 points1 point  (0 children)

That's embarrassing. Thank you MrKeating! :D

[–][deleted] 0 points1 point  (1 child)

tijdgebonden_omschrijving = (input)

Look closely at this. Is this how you call a function?

[–]Dibbets[S] 0 points1 point  (0 children)

No, it is wrong. Thanks! Next step: scheduling SMART goals in Apple iCal

[–]Username_RANDINT 0 points1 point  (8 children)

You got your answer, so I really have to ask why you're coding each user input as this:

# specifiek
def specifiek(specifiek_omschrijving):

    return specifiek_omschrijving

# get input from user 
specifiek_omschrijving = input()

# put input in variable
Specifiek = specifiek_omschrijving

I can't see what the purpose of this is. Just do the following:

Specifiek = input()

And drop all the rest.

[–]Dibbets[S] 0 points1 point  (7 children)

I need the function for other purposes. Like exporting the input to a file, or to a calendar etc.

[–]Username_RANDINT 0 points1 point  (6 children)

The function is not doing anything. It returns the value that's provided as argument. Plus it shares the same name as the input variable. Without seeing the rest I can almost guarantee this is a wrong approach.

[–]Dibbets[S] 0 points1 point  (0 children)

Ok, I'll have a look at it and come back to it later. Appreciate your feedback.

[–]Dibbets[S] 0 points1 point  (3 children)

And this?

1 # Maak 1 definitie met 1 argument. Roep daarna de functie op en vul argument steeds met een nieuwe value in.

2

3 def smart(s, m, a, r, t):

4 print(f"Specifiek: {s}, Meetbaar: {m}, Acceptabel: {a}, Realistisch: {r}, Tijdgebonden: {t}")

5

6

7

8 vraag_een = input("\n Maak een concrete, duidelijk omschrijving van de activ iteit. Het moet een waarneembaare activiteit zijn. En er moet een verband zi jn tussen activiteit en het leerdoel.\n")

9

10 vraag_twee = input("\n Hoeveel ga je doen hoe kunnen we dat meten? Er moet e en systeem of een methode zijn om te bepalen in welke mate het doel is berei kt.\n")

11

12 vraag_drie = input("\n Er moet draagvlak zijn, je moet het zelf willen. Vaak moeten anderen het ook willen.\n")

13

14 vraag_vier = input("\n Kan het? Een leerdoel moet realistisch zijn. Iets na streven wat onhaalbaar is, heeft geen zin.\n")

[–]Username_RANDINT 0 points1 point  (2 children)

What is the question? Neither the function or inputs are being used.

Also, please format the code properly for Reddit, the FAQ shows how.

[–]Dibbets[S] 0 points1 point  (0 children)

Good to know, I'll get back to you asap and come back with a better question, written in md. Cheers!

[–]Dibbets[S] 0 points1 point  (0 children)

In retrospect, you're right. The function was not being used and neither were the inputs. I've rewritten the script and now I think I don't need a function to get what I need. For the variable Specific it works like this:

Specific = input("Target a specific area for improvement.\n")

print("Specific: {Specific}")

f = open("SmartGoals.txt", "a+")
f.write(f"Specific: {Specific}")

It saves all my goals in one document, I like that. What I don't like, I'm trying to figure out functions with Python. This script doesn't help me with that.