How? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How?

Hello everyone🤗! Guys how to write a code that do like this: def coke(): print("hey") coke() def Kola(): print("hi") Kola() If Coke works then work Kola. # I don't know this line* I think you understood I don't really know how to do it. So, do you know it?

5th Feb 2021, 2:49 PM
Unknown
Unknown - avatar
2 Answers
+ 1
your (?) code work fine, if you handle indentation correctly: https://code.sololearn.com/cM4gwWzLilMQ/?ref=app
5th Feb 2021, 2:59 PM
visph
visph - avatar
+ 1
Sorry but i don't exactly understand what you want to do.
5th Feb 2021, 2:57 PM
Abhay
Abhay - avatar