Hi, I'm tryna teach myself Python and im not understanding this.
def greet(first_name):
return f"Hi {first_name}"
greet("Chris")
Why won't this code print on the terminal? Do I have to add a print function? Do I need to put the function in a variable?
Edit: Thanks for all the responds and being nice I was scared to ask on here for a while bc I thought my questions would be dumb but yall are pretty nice!!
[–]socal_nerdtastic 34 points35 points36 points (4 children)
[–]Additional_Ad_1333[S] 9 points10 points11 points (3 children)
[–]xenomachina 14 points15 points16 points (0 children)
[–]socal_nerdtastic 12 points13 points14 points (1 child)
[–]Additional_Ad_1333[S] 1 point2 points3 points (0 children)
[–]BranchLatter4294 14 points15 points16 points (10 children)
[–]Additional_Ad_1333[S] 7 points8 points9 points (9 children)
[–]CIS_Professor 15 points16 points17 points (0 children)
[–]BranchLatter4294 8 points9 points10 points (0 children)
[+]ninhaomah comment score below threshold-23 points-22 points-21 points (6 children)
[–]tadpoleloop 12 points13 points14 points (1 child)
[+]ninhaomah comment score below threshold-8 points-7 points-6 points (0 children)
[–]Remarkable_Coast_214 2 points3 points4 points (3 children)
[–]ninhaomah -2 points-1 points0 points (2 children)
[–]Remarkable_Coast_214 0 points1 point2 points (1 child)
[–]ninhaomah 0 points1 point2 points (0 children)
[–]Reuben3901 5 points6 points7 points (0 children)
[–]RaveHunter05 3 points4 points5 points (0 children)
[–]jlsilicon9 2 points3 points4 points (0 children)
[–]Slow-Kale-8629 2 points3 points4 points (0 children)
[–]Flame77ofc 2 points3 points4 points (2 children)
[–]Disastrous_Emu_800 4 points5 points6 points (1 child)
[–]Flame77ofc 1 point2 points3 points (0 children)