Can you do both java and python | Sololearn: Learn to code for FREE!

+1

Can you do both java and python

Java python programming

10/27/2021 9:16:24 AM

Jayhan Edwards

13 Answers

New Answer

+1

https://www.jython.org/ Jayhan Edwards irrelevant

+2

Okay, what's the input and expected output?

+2

Jython

+1

Do you use this

+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()

+1

It won't print SoloLearn

+1

The input is 15

+1

ranges are inclusive you don't even get to 15 for x in range(1, n+1):

+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

0

It's supposed to print SoloLearn if it finds multiple of 3 and 5

0

Thanks 👍

0

https://www.sololearn.com/Content-Creation-Guidelines/ https://code.sololearn.com/Wv5gTHy1N6Ji/?ref=app https://www.sololearn.com/discuss/1316935/?ref=app https://code.sololearn.com/W3uiji9X28C1/?ref=app

0

Ok thanks