Answer:
import java.util.Scanner;
public class DashLine {
public static void main(String[] args) {
// Declaring variables
int n;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
// Getting the input entered by the user
System.out.print("Enter a number :");
n = sc.nextInt();
// calling the method by passing the user entered input as argument
dashedLine(n);
}
//This method will print the dashed line for number greater than zer
private static void dashedLine(int n) {
if (n > 0) {
for (int i = 1; i <= n; i++) {
System.out.print("-");
}
System.out.println();
}
}
}
Explanation:
Solution :
We need to write a function named ''
_
". The program takes a string and then returns a dictionary which maps the case insensitive word.
def
_
(s):
=
().split()
= {}
for
in words:
if
in
.keys():
[x] += 1
else:
[x] = 1
return 
Answer:
kk imo its jk ima programmer
Answer:
Ther are 8 best programming language :
• Javascript
• Swift
• Scala
• Go
• Python
• Elm
• Ruby
• C#