0
Write a python program that will ask the user to type in a number. Then print that number followed by that many asterisks (*).
Enter a number: 5 5 ***** This is what I did but didn't work: num = input("Enter a number: 5") print("5 *****")
8 Answers
+ 4
If it is your home work or if you want solution then show your attempt..
What are you tried so far...?
Please read this and follow the community guidelines... Thank you..
https://www.sololearn.com/discuss/1316935/?ref=app
Edit: thanks for edit. You got the answer already.
+ 2
print("*" *int(input()), end="")
+ 2
Cameron Mason
num=int(input())
print(num,"*"*num)
+ 1
Kindly show your attempt first than ask about any confusion related to code.
Try first and than ask here.
Hint:
Multiplication of string by int.
+ 1
num = input("Enter a number: 5")
print("5 *****")
this is what I did but didn't work
0
num=int(input("insert you number: "))
print(num,(lambda i:"*"*num)(num))
0
ĐĐŸĐ±ŃŃĐč
0
num = float(input("Enter a number: "))
print(str(num)+" "+"*"*num)
There you go