+ 1

Can you do both java and python

Java python programming

27th Oct 2021, 9:16 AM
Jayhan Edwards
Jayhan Edwards - avatar
13 Answers
27th Oct 2021, 9:38 AM
Slick
Slick - avatar
+ 2
Okay, what's the input and expected output?
27th Oct 2021, 9:44 AM
Slick
Slick - avatar
+ 2
Jython
28th Oct 2021, 8:13 PM
DickerPopo
DickerPopo - avatar
+ 1
Do you use this
27th Oct 2021, 9:40 AM
Jayhan Edwards
Jayhan Edwards - avatar
+ 1
Can you help with this am stuck n = int(input()) for x in range(1, n): if x % 3 == 0 and x % 5 == 0: print("SoloLearn") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print()
27th Oct 2021, 9:42 AM
Jayhan Edwards
Jayhan Edwards - avatar
+ 1
It won't print SoloLearn
27th Oct 2021, 9:42 AM
Jayhan Edwards
Jayhan Edwards - avatar
+ 1
The input is 15
27th Oct 2021, 9:44 AM
Jayhan Edwards
Jayhan Edwards - avatar
+ 1
ranges are inclusive you don't even get to 15 for x in range(1, n+1):
27th Oct 2021, 9:47 AM
Slick
Slick - avatar
+ 1
Jython application development is possible Java classes and interfaces in python code Or Python classes and abcs in java code Both of them comes under jython Java + Python = Jython
28th Oct 2021, 11:17 AM
sree harsha
sree harsha - avatar
0
It's supposed to print SoloLearn if it finds multiple of 3 and 5
27th Oct 2021, 9:45 AM
Jayhan Edwards
Jayhan Edwards - avatar
0
Thanks 👍
27th Oct 2021, 9:50 AM
Jayhan Edwards
Jayhan Edwards - avatar
0
Ok thanks
28th Oct 2021, 6:28 PM
Jayhan Edwards
Jayhan Edwards - avatar