Python problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Python problem

When input = rahul why its not printing if statement! and after output i want space between input and printing statments https://code.sololearn.com/cYH1xPcwYOyn/?ref=app

18th Jul 2021, 1:52 AM
Aayush Jat
Aayush Jat - avatar
2 Answers
+ 1
There's no need of using any "break" stmt here.. And remember, BREAK is only used with loops.. The parameter fname (aayush) which you're passing to the function I'm function call, should enclosed in double quotes.. https://code.sololearn.com/cWG7wIE3K1Su/?ref=app Check this..!! 👆👆
18th Jul 2021, 2:08 AM
sarada lakshmi
sarada lakshmi - avatar
0
Aayush Jat break used in Switch case statement (if any language has this feature) and in loops. So remove that. Also your name Aayush is a String so put inside single quotes or double quotes. freecouple(fname='aayush')
18th Jul 2021, 2:20 AM
A͢J
A͢J - avatar