Discussions Q&R
Write a program that uses a dynamic array that contains 5 items of double values. The size of the array is entered when the program is run. Aldo the 5 values must be entered. These tasks are done in the main ( ) function. Then write a function to display the 5 values. The function must have a pointer variable as a parameter. The function is called from the main ( ).
0 Vote
2 RéponsesI dont unserstand the output if this code :
# string formatting
nums = [4, 5, 6]
msg = "Numbers: {0} {0} {2}". format(nums[0], nums[1], nums[2])
print(msg)
4 4 6
but when I do :
# string formatting
nums = [4, 5, 6]
msg = "Numbers: {0} {0} {2}". format(nums[1], nums[1], nums[2])
print(msg)
it gives me
5 5 6
is there a priority in the Reading ?
0 Vote
5 RéponsesAujourd'hui en vedette
Python
1 Votes
Python question
2 Votes
Guys help please
0 Votes
Control flow
0 Votes
Front-end vs Full-stack
1 Votes
Python
1 Votes
About our Capstone product "Ecocambio" We don't know how to code and how electronics would connect.
0 Votes
Are websites hackable?
1 Votes
C# and sql
1 Votes
What course to take for AI?
0 Votes