Write a program that will obtain the value of a variable A from user and create a tuple Tpl=(A,A,A,A“).
plzz urgent I have exam today.
Answers
Answered by
2
tpl = tuple([(a := input("a: "))] * 4)
print("tpl:", tpl)
Answered by
1
Answer:
Use Python 3
tpl = tuple([(a := input("a: "))] * 4)
tpl = tuple([(a := input("a: "))] * 4)print("tpl:", tpl)
Similar questions