#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# Is this right? (Python)

intA = 5

intB = 6

intC = 3

def equation():

intA * intB + intC;

def result():

print(equation)

print(result)

It doesn't print out the result....

• edited September 2020

Hey, it should say

print(equation())

Also, it shouldn't be

print(result)

it should be

result()

(so no print() call)

Remember () when calling functions.

• It outputs as "None", what should i do?

• edited September 2020

you should do like this

```intA = 5
﻿intB = 6
intC = 3

def equation():

return intA * intB + intC    #The semi colon (;) is not used in python for line endings

def result():

return equation() #calling this function will return

print(result()) #result function is also called

#or you can direcly do in result

def result():
print(equation())

result()  #as the result function automatically prints
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7816944,"math_prob":0.97392905,"size":1018,"snap":"2021-31-2021-39","text_gpt3_token_len":276,"char_repetition_ratio":0.18244576,"word_repetition_ratio":0.39534885,"special_character_ratio":0.27701375,"punctuation_ratio":0.12371134,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9941467,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-26T11:48:50Z\",\"WARC-Record-ID\":\"<urn:uuid:4c29d639-b56c-48a0-9265-d88fcd06d00b>\",\"Content-Length\":\"39268\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:56f1f8ee-b682-4e43-8eec-63fa77937255>\",\"WARC-Concurrent-To\":\"<urn:uuid:70e0aecf-707d-4d77-b08b-a577f7e4300f>\",\"WARC-IP-Address\":\"94.231.103.178\",\"WARC-Target-URI\":\"https://forum.brackeys.com/discussion/1493/is-this-right-python\",\"WARC-Payload-Digest\":\"sha1:KMV6FPACJZ7YNXNCR23BVPP27JXBGU56\",\"WARC-Block-Digest\":\"sha1:K7LS5SLH7KUNRXROMNX5GI2PQVUC35U3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057861.0_warc_CC-MAIN-20210926114012-20210926144012-00669.warc.gz\"}"}